| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:795cd422-9508-ed70-dab7-c023c354abdd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BD6A:1A28DE:30B2C7F:4558617:6AFAF174 |
| html-safe-nonce | 08e5f014b74faf025fefc3c3a08a79986d7cbdddd2074ea736dae93a12c0db75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDZBOjFBMjhERTozMEIyQzdGOjQ1NTg2MTc6NkFGQUYxNzQiLCJ2aXNpdG9yX2lkIjoiNTYyMTI2NDYzMjAwMjU3MjY2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c2b2a7bee0fc6de22a6884836103abf487759ea92a6830f3b6af421af5cc7f59 |
| hovercard-subject-tag | pull_request:4235961735 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| twitter:image | https://avatars.githubusercontent.com/u/10635986?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10635986?s=400&v=4 |
| og:image:alt | Summary
Fair queue consumers could leak the per-tenant concurrency slots that gate admission. Slots were freed on some paths and skipped on others, and once enough leaked slots accumulated for a te... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a85e96a83bed7871993e6b1ffda24105928eee17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/triggerdotdev/trigger.dev/pull/4540/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4540%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4540%2Ffiles |
| Sign up | https://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 |
| Reload | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Reload | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Reload | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| triggerdotdev | https://github.com/triggerdotdev |
| trigger.dev | https://github.com/triggerdotdev/trigger.dev |
| Code | https://github.com/triggerdotdev/trigger.dev |
| Issues203 (203) | https://github.com/triggerdotdev/trigger.dev/issues |
| Pull requests67 (67) | https://github.com/triggerdotdev/trigger.dev/pulls |
| Discussions | https://github.com/triggerdotdev/trigger.dev/discussions |
| Actions | https://github.com/triggerdotdev/trigger.dev/actions |
| Projects | https://github.com/triggerdotdev/trigger.dev/projects |
| Security and quality39 (39) | https://github.com/triggerdotdev/trigger.dev/security |
| Insights | https://github.com/triggerdotdev/trigger.dev/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose |
| matt-aitken | https://github.com/matt-aitken |
| main | https://github.com/triggerdotdev/trigger.dev/tree/main |
| fix/fair-queue-concurrency-slot-leak | https://github.com/triggerdotdev/trigger.dev/tree/fix/fair-queue-concurrency-slot-leak |
|
Conversation
72
| https://github.com/triggerdotdev/trigger.dev/pull/4540 |
|
Commits
13
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits |
|
Checks
50
| https://github.com/triggerdotdev/trigger.dev/pull/4540/checks |
|
Files changed
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
|
fix(redis-worker): stop fair queue leaking concurrency slots
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#top |
|
Show all changes
13 commits
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
|
4df6cda
fix(redis-worker): stop fair queue leaking concurrency slots
matt-aitken Aug 8, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/4df6cda09dbe42868bd2f38bfb21b6993319a917 |
|
35568a3
fix(redis-worker): keep metadata-derived concurrency groups on the re…
matt-aitken Aug 8, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/35568a32e7ad4762ba9c44eab12d370476c15eae |
|
b2ebf18
fix(redis-worker): close the remaining concurrency slot leaks in fair…
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/b2ebf18abc314a633e515594c8ca5ec26dbf38e3 |
|
c6524ca
fix(redis-worker): stop losing dead-lettered messages when the DLQ wr…
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/c6524ca51592d7ef50ac11d95a46fefdf1c22110 |
|
3f8ed8b
fix(redis-worker,run-engine): close the remaining ways a batch item i…
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/3f8ed8b05d8eae6f0814e49310879a6dc95255d8 |
|
a2f12f2
fix(redis-worker,run-engine): give the item heartbeat real margin and…
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/a2f12f2b5d983ead4dbc29a345fa58cf83dae229 |
|
ff348c4
fix(run-engine,redis-worker): drop a batch item result once its lease…
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/ff348c4822eb6d4489d571a2f6ed474c8bf1bfd9 |
|
1b24915
docs(run-engine): state what the lease signal actually guarantees
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/1b2491520ed4433ab10a0efbd3285f01b2a0d2da |
|
01d0666
chore(run-engine): move batch item heartbeating to its own branch
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/01d06660054ae64c6b3f6bf99ddfaa9dce5e98da |
|
72947fe
test(redis-worker): assert reclaim recovery on a stable signal
matt-aitken Aug 11, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/72947fe22689272cb1411b3700ca0d3eab518b00 |
|
e7c3c86
fix(redis-worker): heal leaked concurrency slots instead of blocking …
matt-aitken Aug 12, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/e7c3c86307dac25eb3ecfb1329312205a9faefee |
|
21eb0d3
fix(redis-worker): bound the reconcile sweep cost and write the relea…
matt-aitken Aug 12, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/21eb0d330f0ca1139aae9d860911c4e0ad836079 |
|
ba57004
fix(redis-worker): make the orphan sweep fail safe and page set members
matt-aitken Aug 12, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4540/commits/ba57004b972abdbf51eb800c86daa67b9763a142 |
|
Clear filters
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
|
fair-queue-concurrency-slot-leak.md
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-1e4ea19c951228c20b6f41b4b49c6f297606eab9b6e51640723e8b3001c85944 |
|
concurrency.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
index.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-71f1c15fc5900a4ef63735b95c96f6a4023481b45ef011a47310d1d21f678223 |
|
concurrency.test.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-420dcf0f7351ae5c56b415a04c60fefd1f429e89e3c32176bc7796f7571a427f |
|
fairQueue.test.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-007b421c97a964906ea4708b3bad5ee95a3ef2c50b26d080f16f5ab40a350c03 |
|
visibility.test.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-350d6e943698a810aeb203430ad70c237854b978707143eb699a1745a8b31da3 |
|
types.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-59cdfd5be4629d05371b9f5ce798a5188f0b40af733b2359360915968f79d4f5 |
|
visibility.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-b11e57d16be2c4d56d20a6df685359b3fafb312bec7475ded648fc8723e3309d |
| .changeset/fair-queue-concurrency-slot-leak.md | https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-1e4ea19c951228c20b6f41b4b49c6f297606eab9b6e51640723e8b3001c85944 |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/ba57004b972abdbf51eb800c86daa67b9763a142/.changeset/fair-queue-concurrency-slot-leak.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4540/{{ revealButtonHref }} |
| packages/redis-worker/src/fair-queue/concurrency.ts | https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/ba57004b972abdbf51eb800c86daa67b9763a142/packages/redis-worker/src/fair-queue/concurrency.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4540/{{ revealButtonHref }} |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4540/files#diff-e1d7cfd40c4975d8cdf0eaff2f04b3a602f6cdfe01db5dbfbbb93498fbe3abee |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4540/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |