Title: `GET /api/v2/logs/{runId}` can return an unfinished log right after a sync execute completes · Issue #8354 · simstudioai/sim · GitHub
Open Graph Title: `GET /api/v2/logs/{runId}` can return an unfinished log right after a sync execute completes · Issue #8354 · simstudioai/sim
X Title: `GET /api/v2/logs/{runId}` can return an unfinished log right after a sync execute completes · Issue #8354 · simstudioai/sim
Description: Self-hosted, image built 2026-09-23. I call POST /api/v2/workflows/{id}/execute synchronously, and as soon as it returns status: completed I fetch GET /api/v2/logs/{runId}. Two things show up: Straight after execute returns, the log stil...
Open Graph Description: Self-hosted, image built 2026-09-23. I call POST /api/v2/workflows/{id}/execute synchronously, and as soon as it returns status: completed I fetch GET /api/v2/logs/{runId}. Two things show up: Stra...
X Description: Self-hosted, image built 2026-09-23. I call POST /api/v2/workflows/{id}/execute synchronously, and as soon as it returns status: completed I fetch GET /api/v2/logs/{runId}. Two things show up: Stra...
Opengraph URL: https://github.com/simstudioai/sim/issues/8354
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`GET /api/v2/logs/{runId}` can return an unfinished log right after a sync execute completes","articleBody":"Self-hosted, image built 2026-09-23. I call `POST /api/v2/workflows/{id}/execute` synchronously, and as soon as it returns `status: completed` I fetch `GET /api/v2/logs/{runId}`.\n\nTwo things show up:\n\n1. Straight after execute returns, the log still says `status: running` with `endedAt: null`. It's final a couple of milliseconds later.\n2. After the status is `completed`, `cost.total` is set but `cost.items` is still `null`. This happened in 379 of 1,608 runs in one batch. The matching `usage_log` rows are written about 17ms after the log's `ended_at`.\n\nMy workaround is to poll until the status is terminal and `cost.items` isn't null. It would help if the log were complete before the sync execute returns, or if the docs said the log is eventually consistent and which field to wait on. Without that, telemetry built on the logs API quietly misses cost data.\n","author":{"url":"https://github.com/Rajkumar2002-Rk","@type":"Person","name":"Rajkumar2002-Rk"},"datePublished":"2026-09-27T03:26:48Z","url":"https://github.com/simstudioai/sim/issues/8354"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4928f9e5-b76f-7558-8563-e8d040ef9a25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3AC:AE1F3:8A3CD5:C242ED:6AFB6EE2 |
| html-safe-nonce | 89a083648d6438318ab554b55379f59898277b44391ef8c92cd334001e70a475 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0FDOkFFMUYzOjhBM0NENTpDMjQyRUQ6NkFGQjZFRTIiLCJ2aXNpdG9yX2lkIjoiMjExMTY1OTE0Mjg5NTMzMzA5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21de0fe358e659e25040d879282fc51083ea13192e4c5c0acb0aa96e73b2a7a7 |
| hovercard-subject-tag | issue:5599427522 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/8354/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91fb8541694f7ddd1305225b9c4382a8689cb05f75ce4f154838cb28220fabe5/simstudioai/sim/issues/8354 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91fb8541694f7ddd1305225b9c4382a8689cb05f75ce4f154838cb28220fabe5/simstudioai/sim/issues/8354 |
| og:image:alt | Self-hosted, image built 2026-09-23. I call POST /api/v2/workflows/{id}/execute synchronously, and as soon as it returns status: completed I fetch GET /api/v2/logs/{runId}. Two things show up: Stra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Rajkumar2002-Rk |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width