René's URL Explorer Experiment


Title: feat(supervisor): add opt-in dequeue backpressure by nicktrn · Pull Request #3836 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(supervisor): add opt-in dequeue backpressure by nicktrn · Pull Request #3836 · triggerdotdev/trigger.dev

X Title: feat(supervisor): add opt-in dequeue backpressure by nicktrn · Pull Request #3836 · triggerdotdev/trigger.dev

Description: The supervisor can now pause dequeuing - and freeze consumer-pool scale-up - when a backpressure signal says the cluster can't place more work, then ramp dequeuing back up gradually once it clears. The signal is a verdict published to a Redis key by a cluster-side component; the supervisor reads it on a short refresh and gates preDequeue on it. Off by default (TRIGGER_DEQUEUE_BACKPRESSURE_ENABLED). Everything fails open: a missing, stale, or unreadable verdict never pins the brake, and the hot-path read is a synchronous cached lookup with no I/O. The scale-up freeze leaves scale-down untouched, and on release the resume is ramped so a deep queue isn't hammered all at once. Dry-run is on by default (TRIGGER_DEQUEUE_BACKPRESSURE_DRY_RUN): even once enabled it only logs what it would have done, and surfaces the computed state through metrics, until explicitly set to act. Prometheus: supervisor_backpressure_engaged, _dry_run, _skipped_dequeues_total. Refs TRI-5354

Open Graph Description: The supervisor can now pause dequeuing - and freeze consumer-pool scale-up - when a backpressure signal says the cluster can't place more work, then ramp dequeuing back up gradually once it cle...

X Description: The supervisor can now pause dequeuing - and freeze consumer-pool scale-up - when a backpressure signal says the cluster can't place more work, then ramp dequeuing back up gradually once it...

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

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:ad88da0c-81ab-9fef-f424-ffd9598a90a5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB764:646AE:F16973:15485CA:6AFADCF1
html-safe-nonce21ca29e0ddcc9897925f0366642d8c5c19180208a8895885e71707882f5eecdf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzY0OjY0NkFFOkYxNjk3MzoxNTQ4NUNBOjZBRkFEQ0YxIiwidmlzaXRvcl9pZCI6IjYxMzg3MTc5MTA5NTgwMDU0ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac70d119689b31c63aa8cb3a0f26ee40a6102b7bbcd7dcec5cd74786c3e0d46989
hovercard-subject-tagpull_request:3804935135
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/3836/files
twitter:imagehttps://avatars.githubusercontent.com/u/55853254?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/55853254?s=400&v=4
og:image:altThe supervisor can now pause dequeuing - and freeze consumer-pool scale-up - when a backpressure signal says the cluster can't place more work, then ramp dequeuing back up gradually once it cle...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
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
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/3836/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3836%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%2F3836%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/3836/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3836/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3836/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 requests66 (66)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
nicktrnhttps://github.com/nicktrn
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feat/supervisor-dequeue-backpressure-tri-5354https://github.com/triggerdotdev/trigger.dev/tree/feat/supervisor-dequeue-backpressure-tri-5354
Conversation 20 https://github.com/triggerdotdev/trigger.dev/pull/3836
Commits 12 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits
Checks 51 https://github.com/triggerdotdev/trigger.dev/pull/3836/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/3836/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3836/files
feat(supervisor): add opt-in dequeue backpressure https://github.com/triggerdotdev/trigger.dev/pull/3836/files#top
Show all changes 12 commits https://github.com/triggerdotdev/trigger.dev/pull/3836/files
d96a0d5 feat(supervisor): add BackpressureMonitor for dequeue gating nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/d96a0d5d1c4ad1f9d4486c8b651e3daa11ddc4b4
316a2cd feat(supervisor): add RedisBackpressureSignalSource nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/316a2cd0e26acb924fd64e48f5ea85c38ff885b0
ac3bce7 feat(supervisor): wire dequeue backpressure into preDequeue nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/ac3bce7c361c9c80d5b400b2f01c2f4214e426e6
0e3e66e feat(supervisor): split backpressure signal and add resume ramp nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/0e3e66e02c54228a5fa00c08f0814d23e8f1133b
bc3b709 feat(core): freeze consumer-pool scale-up under backpressure nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/bc3b709e569762be4f80cb958916c6f2544f7e74
72e93ff feat(supervisor): wire scale-up freeze and resume ramp nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/72e93ff03531bbe0e5bdb8a40497f364154f99d0
f77c8fd feat(supervisor): backpressure dry-run mode and prometheus metrics nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/f77c8fd6f40a71df0ea684e49b5d92fa8743de33
5e67d6d fix(supervisor): address review feedback on backpressure monitor nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/5e67d6d2199e714a7b7b2a81923aa87c831cff03
5240de8 fix(supervisor): strip backpressure redis password from debug env log nicktrn Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/5240de810099ddd53d7540caed45cf11bc94108c
b417531 fix(supervisor): use bare ioredis instead of @internal/redis nicktrn Jun 5, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/b417531a71110a366d92304961f819cc9a3f45e9
c3bc59b fix(supervisor): fail open on engaged verdict with no fresh timestamp nicktrn Jun 5, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/c3bc59b9c30d13e7c6c0148faefcf4bf2b35d73f
e67644b fix(supervisor): also strip DOCKER_REGISTRY_PASSWORD from debug env log nicktrn Jun 5, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3836/commits/e67644b1c9ba81b368a0cca5cfe2450090414869
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/3836/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3836/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3836/files
backpressure-scale-up-freeze.md https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-0d3784ad34aa1f5bba93a54feb74e2459703abbb6380235acf367301e3ca5355
supervisor-dequeue-backpressure.md https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-dd3f27cdd130a62025540f2dce32fa7bc1f917a772bff85f7165a3912bcd8507
package.json https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-e031c01cd210e44695a5a4010585ffda4290a4b18ab8ee2e1210a8dfc2039e75
backpressureMetrics.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-f202dc49fb7e3125e96be606eb97a6832d36d43ccb811842a2de0eff6ca7e4ba
backpressureMonitor.test.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-bee8b56c953b4855f1cf7627eb278338cb5a9d6c96ba42fc835973d4e4c819b5
backpressureMonitor.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-adaa439c0fa521119454bae468d2f7242b4f369d2ff1207d41cee9a34a22e145
redisBackpressureSignalSource.test.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-27f4f8798e73440528bbbbc3805cd8378fce74a7e95ed52ac7b2334a0df5bde1
redisBackpressureSignalSource.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-db24c27939f14a7333cbcc1690d7bfd013b9355e3a42ff69c82875a495f1e476
env.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-5b22f3c3d43f6c9ba3f07c3af9327db486b2cf0b5b666041e6b1f72b8836c13f
index.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
consumerPool.test.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-f74a5d0d860dff5e1244589486995cf77977935e111d24e87c4967a762746fa2
consumerPool.ts https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-540a0c4cbe4fb6f9cfa4d4ece033cd030508657e6b5ee182e66ab775fb71ef78
pnpm-lock.yaml https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bb
.changeset/backpressure-scale-up-freeze.mdhttps://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-0d3784ad34aa1f5bba93a54feb74e2459703abbb6380235acf367301e3ca5355
View file https://github.com/triggerdotdev/trigger.dev/blob/e67644b1c9ba81b368a0cca5cfe2450090414869/.changeset/backpressure-scale-up-freeze.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3836/{{ revealButtonHref }}
.server-changes/supervisor-dequeue-backpressure.mdhttps://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-dd3f27cdd130a62025540f2dce32fa7bc1f917a772bff85f7165a3912bcd8507
View file https://github.com/triggerdotdev/trigger.dev/blob/e67644b1c9ba81b368a0cca5cfe2450090414869/.server-changes/supervisor-dequeue-backpressure.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3836/{{ revealButtonHref }}
apps/supervisor/package.jsonhttps://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-e031c01cd210e44695a5a4010585ffda4290a4b18ab8ee2e1210a8dfc2039e75
View file https://github.com/triggerdotdev/trigger.dev/blob/e67644b1c9ba81b368a0cca5cfe2450090414869/apps/supervisor/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3836/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-e031c01cd210e44695a5a4010585ffda4290a4b18ab8ee2e1210a8dfc2039e75
apps/supervisor/src/backpressure/backpressureMetrics.tshttps://github.com/triggerdotdev/trigger.dev/pull/3836/files#diff-f202dc49fb7e3125e96be606eb97a6832d36d43ccb811842a2de0eff6ca7e4ba
View file https://github.com/triggerdotdev/trigger.dev/blob/e67644b1c9ba81b368a0cca5cfe2450090414869/apps/supervisor/src/backpressure/backpressureMetrics.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3836/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3836/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.