René's URL Explorer Experiment


Title: feat(run-engine): fair virtual-time scheduling for the concurrency-key dequeue by 1stvamp · Pull Request #4367 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(run-engine): fair virtual-time scheduling for the concurrency-key dequeue by 1stvamp · Pull Request #4367 · triggerdotdev/trigger.dev

X Title: feat(run-engine): fair virtual-time scheduling for the concurrency-key dequeue by 1stvamp · Pull Request #4367 · triggerdotdev/trigger.dev

Description: Off by default. When many concurrency-key variants share one task queue, the dequeue serves the oldest waiting run first, so one key's large backlog is served to exhaustion while keys queued behind it wait for the whole pile to drain. This adds an opt-in fair order: each key gets a virtual clock, the dequeue serves the smallest clock and advances it, so keys take turns instead of one pile draining. With the flag off, the existing scripts run unchanged. How it works Three keys per base queue: :ckVtime holds a virtual-time tag per variant, :ckVtimeFloor is the current virtual time, and :ckVtimeIdle remembers the tags of variants that have drained. ckIndex keeps its head-timestamp domain, so time-eligibility, master-queue rebalancing and every other writer stay untouched, which is what makes it mixed-deploy safe. A flag-selected two-pass dequeue. Pass 1 serves the lowest tags and charges each serve a quantum, bounded by a window of maxCount * RUN_ENGINE_CK_VTIME_WINDOW_MULTIPLIER. Pass 2 fills any leftover slots in today's age order and discovers variants that have no tag yet, so the command is a strict superset of today and stays work-conserving. Only pass-1 serves move the floor, so a variant that cannot be served cannot drag the clock along behind it. A draining variant parks its tag in the idle set and takes it back on its next enqueue or nack, so draining and returning isn't a way to reset your clock. All four routes out park it: the dequeue, ack, dead-letter and TTL expiry. A brand-new variant joins one quantum behind the current leader rather than at the floor. Registering at the floor is what let a tenant sharding across fresh keys outrank everything already waiting, and it's now reserved for repair (pass-2 discovery and the gated batch), where everything in sight is established work that lost its tag. A candidate that can't be served this call, because its head is scheduled in the future or it's at its per-key concurrency ceiling, says so instead of spending one of pass 1's window slots. New behaviour lives only in new Lua command names. The existing enqueue/dequeue/nack scripts are byte-for-byte unchanged, which is checkable by hashing each script body, so flag-off is identical to today. Numbers Fairness, flag OFF against ON under the same load on the same box, wait measured in logical dequeue steps: scenario victim wait p99 Jain fairness skewed backlog 636 -> 196 (-69%) 0.34 -> 1 trickle behind a backlog 596 -> 176 (-70%) 0.50 -> 1 A fresh key minted per run against a 2000-deep backlog: the backlogged variant went from 1 slot in 600 to 120 in 600, which is what age order would have given it. Cost, measured saturated with the generator next to Redis, 1M invocations an arm: path flag-on cost scaling enqueue +1.8 usec flat, 100 to 50k keys dequeue, serving +3 to 4% call p95 from the fairness runs above dequeue, every variant gated 33.5 usec at 1k keys 36.4 at 10k memory at rest none the idle set doesn't exist until something drains memory under churn ~1.5MB per queue capped by rank at 10k entries Rule of thumb that fell out of the sweep, useful for costing anything else added to these scripts: about 1.38 usec fixed per EVALSHA plus 0.33 per redis.call. Testing 176 tests across the run-queue suite, green with the flag off and on. Fairness is proven on the real batched dequeue path rather than one message per call, plus multi-consumer exactly-once, a per-dequeue op-count budget, and behaviour tests for the floor, tag advance, GC, registration and the credit round trip through every drain path. Two mutation audits (33 mutations, one change to the production Lua at a time, rerun the suites, on the principle that a green run against a broken invariant is a hole). They found six things nothing was checking, all now covered: the pass-1 guard for a future-scheduled head, the idle park on ack, dead-letter and TTL expiry, nack's credit restore, the dead-letter caller, the TTL enqueue's own copy of the registration block, and any quantum other than 1. Rollout Off by default behind RUN_ENGINE_CK_VTIME_SCHEDULING_ENABLED, with RUN_ENGINE_CK_VTIME_QUANTUM, RUN_ENGINE_CK_VTIME_WINDOW_MULTIPLIER and RUN_ENGINE_CK_VTIME_STATE_TTL_SECONDS for the knobs. Enable on a staging cell, then production. Rollback is flipping the flag off, and leftover state expires within a day. During a rolling deploy, old instances serve in age order and are folded in by pass 2, so nothing is lost and no run is served twice. Every mutation is a single atomic Lua script, which is what makes those interleavings safe. That atomicity assumes the single-node Redis the run queue actually runs on: it has no cluster-mode setting (every other Redis in env.server.ts has one, RUN_ENGINE_RUN_QUEUE_REDIS_* doesn't), and the master queue key sits outside the base queue's hash slot exactly as it does in the command this one is modelled on. Known limitations Registration order sets relative priority. Within the fair pass a variant's tag comes from when it joined and how much it has been served, so message age doesn't break in. A key that arrives during a busy period sits a quantum behind the leader and keeps that place until the floor catches up. This is deliberate, since the alternative (strict fair share) makes minting fresh keys pay, and it's worth confirming against a real high-cardinality workload before the flag goes on anywhere. Ties break lexically. Variants on the same tag, at a cold start or when a collected variant re-registers, are served in queue-name order. It's a pre-existing effect of the old head-timestamp ordering and only affects who goes first, not long-run fairness. The vtime scripts are copies. Seven pairs, about 688 identical Lua lines, kept as copies so the flag-off path stays byte-identical. A change to one of the originals doesn't reach its copy, which already happened once on this branch (main added a TTL re-registration to dequeueMessagesFromCkQueueTracked and the copy went without it until 7f01aaf). A follow-up PR will pin each copy against its original so drift shows up as a red check.

Open Graph Description: Off by default. When many concurrency-key variants share one task queue, the dequeue serves the oldest waiting run first, so one key's large backlog is served to exhaustion while keys queued be...

X Description: Off by default. When many concurrency-key variants share one task queue, the dequeue serves the oldest waiting run first, so one key's large backlog is served to exhaustion while keys queue...

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

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:4a8a41bb-bd8c-9b84-1932-7c5956fb963b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD760:90D42:52AC62:7B1648:6AFAECB7
html-safe-nonced40491eb0220647c309ce1ae6f0dd13539e3cb835584c5d328fc483275ffbdd9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzYwOjkwRDQyOjUyQUM2Mjo3QjE2NDg6NkFGQUVDQjciLCJ2aXNpdG9yX2lkIjoiODk4NjYwNDAzNzk0Nzk3Njg4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbacc377842adf0acdc3f8ab12c61d2e0e3fbabb5c2c7e67e48a9646ea02b33b6
hovercard-subject-tagpull_request:4125935869
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/4367/files
twitter:imagehttps://avatars.githubusercontent.com/u/35831?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/35831?s=400&v=4
og:image:altOff by default. When many concurrency-key variants share one task queue, the dequeue serves the oldest waiting run first, so one key's large backlog is served to exhaustion while keys queued be...
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
release12fff95459b24b0f882a66698ee6a36a5934d247
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4367/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4367%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%2F4367%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/4367/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4367/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4367/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
matt-aitkenhttps://github.com/matt-aitken
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feat/ck-virtual-time-schedulinghttps://github.com/triggerdotdev/trigger.dev/tree/feat/ck-virtual-time-scheduling
Conversation 111 https://github.com/triggerdotdev/trigger.dev/pull/4367
Commits 65 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits
Checks 63 https://github.com/triggerdotdev/trigger.dev/pull/4367/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4367/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4367/files
feat(run-engine): fair virtual-time scheduling for the concurrency-key dequeue https://github.com/triggerdotdev/trigger.dev/pull/4367/files#top
Show all changes 65 commits https://github.com/triggerdotdev/trigger.dev/pull/4367/files
0375746 feat(run-engine): concurrency-key virtual-time key builders 1stvamp Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/0375746eb14e287d5cf9c372768d79103d677758
91fb435 feat(run-engine): ckVirtualTimeScheduling options flag 1stvamp Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/91fb4350998fb17d0e8682f7b486b78ea183847f
3591bea feat(run-engine): two-pass virtual-time CK dequeue command 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/3591bea6de0d2c9906660e20757d359e984b6c3a
113904f feat(run-engine): register CK variants in vtime index on enqueue 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/113904ffe6f31a7398455c791fb0b51a1b2e0ccb
1765b77 feat(run-engine): re-register CK variants in vtime index on nack 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/1765b77aa1b1637b19941700152da21a7e6fe481
f646766 test(run-engine): fairness scenarios on the real batched dequeue path 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/f64676603cab49864a93e264d5b27ff1069b8aae
9dac71b test(run-engine): multi-consumer correctness + op-count budget 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/9dac71b03751946806acdce4a73233ca4efb4361
24b6220 test(run-engine): default-off regression proof 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/24b62205752d3478fe625a70852b5d6423602875
bddc82e feat(run-engine,webapp): wire ckVirtualTimeScheduling env flag (code-… 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/bddc82ee8909c8d0e769db540480ad43e81219e1
86977ff chore(run-engine): ship note + comment/format cleanup 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/86977fff9d28884b15a615113708c3dd0992050f
2b1c389 fix(run-engine,webapp): address whole-branch adversarial review 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/2b1c389f2af802f23cde91621c1b67e799124aed
5cb0aa5 docs(run-engine): record CK vtime known limitations for GA decision 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/5cb0aa5417ce4b384e5aa08394a931918863f5ec
e9da64c docs(run-engine): plan + references for virtual-time CK fair scheduling 1stvamp Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/e9da64cb6a662ea50b60da3b8b34037d1f4fbd94
dce0b72 docs(run-engine): add fairness explainer diagrams 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/dce0b7284f6176ed5efa1b16c9b800129b7a036e
21211ae fix(run-engine): move design docs out of the Mintlify docs/ tree; format 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/21211ae2bcf466ecd11808f7629ff9db35164481
e1444eb docs(run-engine): tighten CK fairness server-changes note 1stvamp Jul 24, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/e1444ebb0c0e1234084a308927c4587b56e3c444
dea03c6 docs(run-engine): fix stale references in the CK fairness design docs 1stvamp Jul 26, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/dea03c69c046f88f9bc76e3d72240cd2c7e45437
c804278 docs(run-engine): add CK virtual-time A/B benchmark plan and harness 1stvamp Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/c8042789acac3a50c5019ab47d9bc19eae07be46
da3c8fb docs(run-engine): make the e2e bench harness work on self-hosted 1stvamp Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/da3c8fb58965f0e3bdb9affbe5eed4e3c7727977
4994295 docs(run-engine): add CK virtual-time benchmark results 1stvamp Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/49942955ee1b6b3f543c57ba8694df9a72d7f4e5
3dd789f chore(run-engine): gitignore benchmark output artifacts 1stvamp Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/3dd789ff8eaedf558e9834a679c6e4a8ae4d4c03
31606d3 docs(run-engine): benchmark Redis CPU and memory vs concurrency-key c… 1stvamp Jul 28, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/31606d36a9cf764a49f8e0a55613f273b212dd4b
9015810 chore(run-engine): drop benchmark, e2e, and design docs from the branch 1stvamp Jul 28, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/9015810251591f24648d7f3fd1075c33c0f074bc
bb07b0b fix(run-engine): stop an unservable variant pinning the ck virtual-ti… 1stvamp Jul 31, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/bb07b0be9d3b2fc6fac49e3fa43a8a47d3734971
819e021 fix(run-engine): advance the ck virtual-time floor from servable vari… 1stvamp Jul 31, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/819e02144ed2c8f14ccfe82b18a002821bfd44ee
b932442 fix(run-engine): keep unservable ck variants in the fair order 1stvamp Jul 31, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/b932442587caee46fecaa98555cf9ea8c45fbdfd
d8c5201 fix(run-engine): make ck vtime pass 2 discover unregistered variants 1stvamp Aug 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/d8c520137e108aecb29be22314b8177f278df6ab
f538f8d test(run-engine): bound the ckManyKeys first-serve claim 1stvamp Aug 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/f538f8d1b3323dfaf41c5a4d6d38b8fa88f8934d
5cd0c65 test(run-engine): pin the ck vtime window-freeze and stranded-entry b… 1stvamp Aug 6, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/5cd0c6550f1d52f418a590bc8992467fe193cc47
c2fd2be docs(run-engine): note the ck vtime retry-storm fallback in the relea… 1stvamp Aug 6, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/c2fd2bed82dc7b31301d820d3c72be1c581912b2
3298ee2 fix(run-engine): stop unready ck variants blocking the fair pass, and… 1stvamp Aug 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/3298ee272596c06e3666d1483a4934c8897496ca
6ce9d2a fix(run-engine): guard the wildcard cleanup in the ck vtime scripts 1stvamp Aug 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/6ce9d2aaefe9c09d7352486145fe934e2edcaebe
701d164 fix(run-engine): register a gated ck variant so it can rejoin the fai… 1stvamp Aug 16, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/701d16442d501b44be70b2fb1e340974576f722a
d21cbb9 fix(run-engine): drop drained ck variants from the fair order on ack,… 1stvamp Aug 17, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/d21cbb9fdbd4de937ea32ca9519138a87a72570f
af407f5 fix(run-engine): remember a drained ck variant's virtual time 1stvamp Aug 18, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/af407f5ae4d1dcaba62e1da9237979d6333c76e3
50351eb fix(run-engine): bound the ck idle set by rank, not just by floor 1stvamp Aug 18, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/50351ebba80b5a37c37cfbba5cf4b469b5658a8a
dca1e9c perf(run-engine): cut two Redis calls from the ck vtime registration … 1stvamp Aug 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/dca1e9c64368c8da6935f95efd5514f24eb9f903
2b6bfee perf(run-engine): stop re-registering ck variants already in the fair… 1stvamp Aug 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/2b6bfeeccd60540314eb14213f6930afa23cd5f7
f5c1d74 fix(run-engine): keep the ck vtime floor alive alongside the tags it … 1stvamp Aug 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/f5c1d747e2692ce9a63f8a5222360d84adc82a78
d018b28 docs(run-engine): cut the ck fair scheduling release note down to the… 1stvamp Aug 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/d018b2825de18db9f557c25f1759ce5fbd0b8087
c11b5c8 fix(run-engine): register a brand-new ck variant behind the pack, not… 1stvamp Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/c11b5c8b190e0b0aaa33d15d3c36b69abec9916b
bb4d67d test(run-engine): pin the fresh-key fix and isolate the ck idle rank cap 1stvamp Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/bb4d67de733af6e4433f2c2779af89ffbaafce59
f3ad8d6 fix(run-engine): stop the ck arrival cap from being reachable 1stvamp Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/f3ad8d67cd393f151b7f1cdbd2aab8bb1a6e1fec
64b2fc9 fix(run-engine): stop concurrency-gated ck variants eating the fair pass 1stvamp Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/64b2fc9557bcee329b59686764510f9f5f2df2e1
e8aa263 test(run-engine): cover the future-head window guard a mutation audit… 1stvamp Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/e8aa2637239e6a0855b96fcf8afdb44cfd8c49cf
18e6dce test(run-engine): pin the ck vtime credit round trip and TTL registra… 1stvamp Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/18e6dcefd4c7c3d47065fee56e6cfcd8dee03814
0a9998d fix(run-engine): stop the gated ck batch rewinding a live virtual-tim… 1stvamp Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/0a9998dc5d15da71adaf1f5a14e00630fbe38494
2b7a533 test(run-engine): pin the parked tag a gated variant registers with 1stvamp Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/2b7a53329b93c5fd54ee557f2db6d060a809e827
88127be docs(run-engine): cut the ck vtime comments back to what the code can… 1stvamp Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/88127be847c447d3384a8fdb9dbf1e2b7595630f
3c23a3a fix(run-engine): re-register the TTL entry when the vtime dequeue exp… 1stvamp Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/3c23a3ae9099fb61f692b6f6146f18ecb0ae2284
e69f000 fix(run-engine): keep parked ck credit when pass 2 repairs a variant 1stvamp Sep 7, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/e69f000f486173c8be2b261bbc48c6e73229c45b
a5fa891 refactor(run-engine): share one copy of the ck ack, nack and dead-let… 1stvamp Sep 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/a5fa891f253c493027929ccb40e1fe501f0c818a
838896a fix(run-engine): restore the snapshotRoute read in the vtime TTL sweep 1stvamp Sep 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/838896a7dbef951daf1fd1aa97e3d13105aed4cb
0584290 refactor(run-engine): share one copy of the remaining ck lua 1stvamp Sep 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/058429090f08d52a379c04ace941526cd1031635
c5c6bc9 fix(run-engine): make a mistyped ck lua slot a compile error 1stvamp Sep 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/c5c6bc9fd37bb9a9562a81aeaa7e356d8989b0ec
c8872e2 test(run-engine): pin the snapshotRoute the vtime TTL sweep hands the… 1stvamp Sep 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/c8872e28bbb2356fd875631cc7e4664348b4d797
43d0722 test(run-engine): load every run-queue script into redis 1stvamp Sep 15, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/43d0722b7d4fb9e929b55e6c9f5e191cd415f3e2
565ad2c merge: integrate origin/main into ck virtual-time scheduling 1stvamp Sep 18, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/565ad2cf166efe7dff91c1debfd552717dee8ebd
c4b657d test(run-engine): thread groupConcurrencyKey into the two direct-Lua … 1stvamp Sep 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/c4b657d0645e06dc62993d454b1e051038a628cf
c4af9aa docs(run-engine): correct the ckExpireTtlLua sharing comment 1stvamp Sep 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/c4af9aab7f7620b66f56264e51ab8e0ec2e5aec9
b02f4f0 feat(run-engine): warn when ck vtime and queue-gates are both enabled 1stvamp Sep 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/b02f4f0d90a50e358a9077044879527ad2b5fa87
a9a14be feat(run-engine): enforce queue-gates in the vtime dequeue and TTL sweep 1stvamp Sep 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/a9a14bef09d979a7e48ef5f7c05c385f62c5372b
9040133 feat(webapp): allow a fractional ck vtime quantum 1stvamp Sep 19, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/90401333e7efdfd58db5478d0221b1debb78a346
fab8175 fix(run-engine): reject a non-finite ck vtime quantum 1stvamp Sep 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/fab817550b762226b9e6c5090d13a1f75da418b4
027415b Merge remote-tracking branch 'origin/main' into feat/ck-virtual-time-… 1stvamp Sep 22, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4367/commits/027415bb7cbfd5729624d858425ebb88c89a53b5
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4367/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4367/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4367/files
2026-07-24-ck-fair-scheduling.md https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-76dd7ceb77b056888b55607ea2c6a02497251ef2b16d97d716d9ec51333760f3
env.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
runEngine.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-44b2620e883d51908283afcb71504e2318df61525d0fbbf15b60d18b400a8c59
index.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-d29236a78d70dd8a019a2ec308d8eab0eda9f5fbf116d19d5c99b8f573a1b5df
types.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-81c21d7967ac61777b1a20d53a0f821068d182af9f44ec4bd64b967c8fbd6d92
index.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-0365b31224e46e323c8868fee705d14146349e29abd175070c7e7a49e9cb73ae
keyProducer.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-2c47c1bf420e5f4b6b83aef2790c2734af7c000165c658cc931af700e3c5e7b7
ckVtime.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-5e05bf5ca67324030740339c0678719befcdfc9ddd73b6bb148ee7427b6c59db
ckVtimeConcurrency.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-10fca21b6fe240134cc0b785fda655585b4855370fd6934e64b54f6057374d8a
ckVtimeDrainCredit.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-8415dc4956855afbf199a44504708004b9f83c75c43472426784cb8a4245d327
ckVtimeFairness.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-72c5bebd7ebddd72d9fbbce297ea0d96f786f2412d1b80105c5427e753e4c186
ckVtimeGatedOpBudget.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-568e3052b5ba074dae46f603eaaa2287a5bbb7c40a13e38ea52cbd23f7d65813
ckVtimeGatedRewind.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-4f41f5a64fa928d11180735bf637eab52a60d4abfa08361adcf34f2a4774c8c2
ckVtimeGatedWindow.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-e2d32fc0123d92bc2588eba10f790a4c7ed1312ba05854b5be88ba677d1cc4ee
ckVtimeGatesIntegration.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-9a03d55799c85c03261764b5226831a22f1fa504d27d7e5eb6965c4117923f0f
ckVtimeMixedRollout.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-c49151c9e4f623e2d4f46370404031cdc96b6d0a5918ddce284416dfbe1e9b54
ckVtimeRegistration.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-5b15d54e65565ad51e1d1dda41003ac20f5415e24c396b6f6e9eacb2d390563f
ckVtimeScriptsCompile.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-cb136a5698059aebcc794ea338f272936cbbc7d53062912d68ef90b81ca507fa
ckVtimeStarvation.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-7006ffefb9bb8a612a6b6f88972c1f310db3533ac601de5d5643b80be7b14225
fairQueueSelectionStrategy.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-cd711dae84ba867d0d6f20d0653ad4381967ab2961b5df16ab59216e5bdd2c86
keyProducer.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-c66ebb11ab55d2ca8839e1ca6f86fa5f5a8e99ff56e11eb387240f08dd28a6a4
types.ts https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-cbcd44d22184883324208ec29b1591dfe40d0f057b3ef9ac4430866c4fc1143d
.server-changes/2026-07-24-ck-fair-scheduling.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-76dd7ceb77b056888b55607ea2c6a02497251ef2b16d97d716d9ec51333760f3
View file https://github.com/triggerdotdev/trigger.dev/blob/027415bb7cbfd5729624d858425ebb88c89a53b5/.server-changes/2026-07-24-ck-fair-scheduling.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4367/{{ revealButtonHref }}
apps/webapp/app/env.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
View file https://github.com/triggerdotdev/trigger.dev/blob/027415bb7cbfd5729624d858425ebb88c89a53b5/apps/webapp/app/env.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4367/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
apps/webapp/app/v3/runEngine.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-44b2620e883d51908283afcb71504e2318df61525d0fbbf15b60d18b400a8c59
View file https://github.com/triggerdotdev/trigger.dev/blob/027415bb7cbfd5729624d858425ebb88c89a53b5/apps/webapp/app/v3/runEngine.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4367/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-44b2620e883d51908283afcb71504e2318df61525d0fbbf15b60d18b400a8c59
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-44b2620e883d51908283afcb71504e2318df61525d0fbbf15b60d18b400a8c59
internal-packages/run-engine/src/engine/index.tshttps://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-d29236a78d70dd8a019a2ec308d8eab0eda9f5fbf116d19d5c99b8f573a1b5df
View file https://github.com/triggerdotdev/trigger.dev/blob/027415bb7cbfd5729624d858425ebb88c89a53b5/internal-packages/run-engine/src/engine/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4367/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-d29236a78d70dd8a019a2ec308d8eab0eda9f5fbf116d19d5c99b8f573a1b5df
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-d29236a78d70dd8a019a2ec308d8eab0eda9f5fbf116d19d5c99b8f573a1b5df
internal-packages/run-engine/src/engine/types.tshttps://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-81c21d7967ac61777b1a20d53a0f821068d182af9f44ec4bd64b967c8fbd6d92
View file https://github.com/triggerdotdev/trigger.dev/blob/027415bb7cbfd5729624d858425ebb88c89a53b5/internal-packages/run-engine/src/engine/types.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4367/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-81c21d7967ac61777b1a20d53a0f821068d182af9f44ec4bd64b967c8fbd6d92
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-81c21d7967ac61777b1a20d53a0f821068d182af9f44ec4bd64b967c8fbd6d92
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-81c21d7967ac61777b1a20d53a0f821068d182af9f44ec4bd64b967c8fbd6d92
https://github.com/triggerdotdev/trigger.dev/pull/4367/files#diff-81c21d7967ac61777b1a20d53a0f821068d182af9f44ec4bd64b967c8fbd6d92
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4367/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4367/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.