René's URL Explorer Experiment


Title: fix(run-engine,webapp): resolve dequeue worker version fresh per task by ericallam · Pull Request #4622 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(run-engine,webapp): resolve dequeue worker version fresh per task by ericallam · Pull Request #4622 · triggerdotdev/trigger.dev

X Title: fix(run-engine,webapp): resolve dequeue worker version fresh per task by ericallam · Pull Request #4622 · triggerdotdev/trigger.dev

Description: Summary After a deployment promotion or rollback, newly triggered runs could keep dispatching onto the previously deployed version for up to 30 seconds. Runs now resolve the current version fresh on every dequeue, so a promotion or rollback takes effect immediately. Fix The dequeue path resolved the worker version through a 30s in-process cache that nothing invalidated on promotion, and it loaded the worker's entire task and queue set only to keep the single row matching the run. Both go away: the resolve now fetches just the matched task and queue by unique index and reads them fresh, so there is no cache left to serve a stale version. - cache.get(env:current) # 30s TTL, never invalidated -> stale - worker + ALL tasks + ALL queues + worker + one task WHERE slug=... + one queue WHERE id/name=... # fresh A kill-switch env var (RUN_OPS_WORKER_VERSION_FRESH_READ_ENABLED, default on) falls back to the old cached path without a code deploy. Verified end-to-end on an isolated stack: a run triggered after a mid-stream promotion now dequeues onto the new version, with the previous stale behavior reproduced first.

Open Graph Description: Summary After a deployment promotion or rollback, newly triggered runs could keep dispatching onto the previously deployed version for up to 30 seconds. Runs now resolve the current version fresh o...

X Description: Summary After a deployment promotion or rollback, newly triggered runs could keep dispatching onto the previously deployed version for up to 30 seconds. Runs now resolve the current version fresh o...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4622

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:36bb131c-f660-12a7-8a01-ec38b07d99fc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9BB2:D1FA2:92DA4:CF7DA:6AFAF205
html-safe-noncecd3cfa0c33abe20895952732f0ce66dfb026f52ae854bca991f245e183588818
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkIyOkQxRkEyOjkyREE0OkNGN0RBOjZBRkFGMjA1IiwidmlzaXRvcl9pZCI6IjQ4OTIzMDExMzE1OTUzMTM2NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2465cfec046d4baeb39ca780f12649be76b90312da3b50f9b36984d0d4449698
hovercard-subject-tagpull_request:4281125038
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4622/files
twitter:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
og:image:altSummary After a deployment promotion or rollback, newly triggered runs could keep dispatching onto the previously deployed version for up to 30 seconds. Runs now resolve the current version fresh o...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea85e96a83bed7871993e6b1ffda24105928eee17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4622/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4622%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4622%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
ericallamhttps://github.com/ericallam
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feature/tri-13291-reproduce-dequeue-worker-version-resolve-fetches-all-taskshttps://github.com/triggerdotdev/trigger.dev/tree/feature/tri-13291-reproduce-dequeue-worker-version-resolve-fetches-all-tasks
Conversation 9 https://github.com/triggerdotdev/trigger.dev/pull/4622
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/4622/commits
Checks 69 https://github.com/triggerdotdev/trigger.dev/pull/4622/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4622/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
fix(run-engine,webapp): resolve dequeue worker version fresh per task https://github.com/triggerdotdev/trigger.dev/pull/4622/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/4622/files
4e9273e fix(run-engine,webapp): resolve dequeue worker version fresh per task ericallam Aug 14, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4622/commits/4e9273ed4dbe539529ae6dda1cf78a299517f48e
8b654bd fix(webapp): default worker-version fresh-read on; update resolver tests ericallam Aug 14, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4622/commits/8b654bd54bdbe6b89b9aae18715ee6d3164010be
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4622/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
dequeue-worker-version-freshness.md https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-3f25b8933c9a08defd3e4aca1c85888659f9e56bfa44aaed05a922f2982c092a
env.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
controlPlaneCache.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-0ef9144ad5c4ae2011687f4108b801dcd9fb26babd37768e788715c158d1b28b
controlPlaneResolver.dispatchFreshness.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-7f3bee548f744f337f8cdaba4607f86ec586592ce81cab418e4de3326ddc5919
controlPlaneResolver.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-479d8e8c279a248c65282529b06c3110fe74321a2346eb5154e723b54d43d228
runEngineControlPlaneResolver.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-4e50cb13301a5823dd3bf8180e207b2e6e89f4a1cc2879bd41c1f7dd3b304293
dequeueWorkerVersionFreshness.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-6a38e072b053faa5c533b8821df7f7c6101e042d5d229e2939d80346af23e2ef
controlPlaneResolver.server.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-af9e4872cff17cd16d747946864296b2389b00ff05c5893522696d4018962ee9
controlPlaneResolver.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-05ad30041d1f8aba6f497a3b3bd12d9fb4d5b27d64f21ffc5c3b91c4cceeb857
dequeueSystem.ts https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-1459e83217f8c86df98b8cb4aa5fe630961fa6bb500650e52124d5ee2454f846
.server-changes/dequeue-worker-version-freshness.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-3f25b8933c9a08defd3e4aca1c85888659f9e56bfa44aaed05a922f2982c092a
View file https://github.com/triggerdotdev/trigger.dev/blob/8b654bd54bdbe6b89b9aae18715ee6d3164010be/.server-changes/dequeue-worker-version-freshness.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4622/{{ revealButtonHref }}
apps/webapp/app/env.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
View file https://github.com/triggerdotdev/trigger.dev/blob/8b654bd54bdbe6b89b9aae18715ee6d3164010be/apps/webapp/app/env.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4622/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
apps/webapp/app/v3/runOpsMigration/controlPlaneCache.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-0ef9144ad5c4ae2011687f4108b801dcd9fb26babd37768e788715c158d1b28b
View file https://github.com/triggerdotdev/trigger.dev/blob/8b654bd54bdbe6b89b9aae18715ee6d3164010be/apps/webapp/app/v3/runOpsMigration/controlPlaneCache.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4622/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-0ef9144ad5c4ae2011687f4108b801dcd9fb26babd37768e788715c158d1b28b
https://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-0ef9144ad5c4ae2011687f4108b801dcd9fb26babd37768e788715c158d1b28b
apps/webapp/app/v3/runOpsMigration/controlPlaneResolver.dispatchFreshness.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4622/files#diff-7f3bee548f744f337f8cdaba4607f86ec586592ce81cab418e4de3326ddc5919
View file https://github.com/triggerdotdev/trigger.dev/blob/8b654bd54bdbe6b89b9aae18715ee6d3164010be/apps/webapp/app/v3/runOpsMigration/controlPlaneResolver.dispatchFreshness.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4622/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4622/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.