René's URL Explorer Experiment


Title: fix(webapp): stop the billing limits page timing out under enforcement by matt-aitken · Pull Request #4594 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(webapp): stop the billing limits page timing out under enforcement by matt-aitken · Pull Request #4594 · triggerdotdev/trigger.dev

X Title: fix(webapp): stop the billing limits page timing out under enforcement by matt-aitken · Pull Request #4594 · triggerdotdev/trigger.dev

Description: Summary Opening the billing limits page while a spend limit was being enforced could time out with no response for organizations with many preview branches. That is exactly the moment the page matters: it is the only self-serve way to raise or resolve the limit. The page now loads fast regardless of how many environments the organization has. Root cause and fix The loader's queued-run count ran one ClickHouse count per billable environment, sequentially, with no timeout, and the environment list included every archived preview branch ever created. Thousands of environments times one round trip each held the response open past the edge timeout. The count is now a single org-level ClickHouse query filtered on environment type, capped server-side with max_execution_time. If the count fails, the loader falls back to 0 (the page hides the count label at 0) instead of throwing, so the recovery panel stays reachable even when the count errors. The billing-limit bulk-cancel path also stops enumerating archived environments.

Open Graph Description: Summary Opening the billing limits page while a spend limit was being enforced could time out with no response for organizations with many preview branches. That is exactly the moment the page matt...

X Description: Summary Opening the billing limits page while a spend limit was being enforced could time out with no response for organizations with many preview branches. That is exactly the moment the page matt...

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

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:7280c8fd-c560-3867-d398-63b07a8da78b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9980:18F46D:43DCA:5F47C:6AFAF2E5
html-safe-nonce39fe2f6427e54e9a72d68b282fac517eb283e0a1221c55cf7a1b3dbbd517816c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTgwOjE4RjQ2RDo0M0RDQTo1RjQ3Qzo2QUZBRjJFNSIsInZpc2l0b3JfaWQiOiI3MDI3OTgyNzc2NDAxNTg4OTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac15d383fcb738d55d8a3210c2a6a1b36b489d3645dbb4c471fc52b0320afa3c3a
hovercard-subject-tagpull_request:4265016975
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/4594/files
twitter:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
og:image:altSummary Opening the billing limits page while a spend limit was being enforced could time out with no response for organizations with many preview branches. That is exactly the moment the page matt...
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/4594/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4594%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%2F4594%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/4594/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4594/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4594/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
fix/billing-limits-queued-counthttps://github.com/triggerdotdev/trigger.dev/tree/fix/billing-limits-queued-count
Conversation 15 https://github.com/triggerdotdev/trigger.dev/pull/4594
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/4594/commits
Checks 49 https://github.com/triggerdotdev/trigger.dev/pull/4594/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4594/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4594/files
fix(webapp): stop the billing limits page timing out under enforcement https://github.com/triggerdotdev/trigger.dev/pull/4594/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/4594/files
3d00189 fix(webapp): stop the billing limits page timing out under enforcement matt-aitken Aug 12, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4594/commits/3d00189e7daa8f8de5887c98babd6cf0cb407bd9
86c7096 fix(webapp): keep archived branches covered by billing limit enforcement matt-aitken Aug 12, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4594/commits/86c70968decad7a0816788b9d19e3ab5b91f54f7
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4594/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4594/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4594/files
billing-limits-page-timeout.md https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-a6cd72c3d7b40c51cb8100ae22583cdcc6e711d0e122d4ff22e00db2130bd770
billingLimitConstants.ts https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-a3ca000c87ef52bce355b990b426fe52d9fe745bc42981845d1e0376147994e3
billingLimitQueuedRuns.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-0a635c3b6d9898e633423ce1b667abb222336d2495bb5549a084df7beb6ecc6d
getBillingLimitQueuedRunCount.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-720000c604f09cc77b2e81ea40c784c203b283f0e692138bf3d9535efe6a8d31
billingLimitQueuedRuns.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-28671851d5e7788c42b32994024f261dc60fc9a50d6b2767f342a1dfd56a5513
.server-changes/billing-limits-page-timeout.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-a6cd72c3d7b40c51cb8100ae22583cdcc6e711d0e122d4ff22e00db2130bd770
View file https://github.com/triggerdotdev/trigger.dev/blob/86c70968decad7a0816788b9d19e3ab5b91f54f7/.server-changes/billing-limits-page-timeout.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4594/{{ revealButtonHref }}
apps/webapp/app/v3/services/billingLimit/billingLimitConstants.tshttps://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-a3ca000c87ef52bce355b990b426fe52d9fe745bc42981845d1e0376147994e3
View file https://github.com/triggerdotdev/trigger.dev/blob/86c70968decad7a0816788b9d19e3ab5b91f54f7/apps/webapp/app/v3/services/billingLimit/billingLimitConstants.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4594/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-a3ca000c87ef52bce355b990b426fe52d9fe745bc42981845d1e0376147994e3
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-a3ca000c87ef52bce355b990b426fe52d9fe745bc42981845d1e0376147994e3
apps/webapp/app/v3/services/billingLimit/billingLimitQueuedRuns.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-0a635c3b6d9898e633423ce1b667abb222336d2495bb5549a084df7beb6ecc6d
View file https://github.com/triggerdotdev/trigger.dev/blob/86c70968decad7a0816788b9d19e3ab5b91f54f7/apps/webapp/app/v3/services/billingLimit/billingLimitQueuedRuns.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4594/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-0a635c3b6d9898e633423ce1b667abb222336d2495bb5549a084df7beb6ecc6d
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-0a635c3b6d9898e633423ce1b667abb222336d2495bb5549a084df7beb6ecc6d
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4594/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4594/files
apps/webapp/app/v3/services/billingLimit/getBillingLimitQueuedRunCount.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-720000c604f09cc77b2e81ea40c784c203b283f0e692138bf3d9535efe6a8d31
View file https://github.com/triggerdotdev/trigger.dev/blob/86c70968decad7a0816788b9d19e3ab5b91f54f7/apps/webapp/app/v3/services/billingLimit/getBillingLimitQueuedRunCount.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4594/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-720000c604f09cc77b2e81ea40c784c203b283f0e692138bf3d9535efe6a8d31
apps/webapp/test/billingLimitQueuedRuns.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-28671851d5e7788c42b32994024f261dc60fc9a50d6b2767f342a1dfd56a5513
View file https://github.com/triggerdotdev/trigger.dev/blob/86c70968decad7a0816788b9d19e3ab5b91f54f7/apps/webapp/test/billingLimitQueuedRuns.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4594/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-28671851d5e7788c42b32994024f261dc60fc9a50d6b2767f342a1dfd56a5513
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-28671851d5e7788c42b32994024f261dc60fc9a50d6b2767f342a1dfd56a5513
https://github.com/triggerdotdev/trigger.dev/pull/4594/files#diff-28671851d5e7788c42b32994024f261dc60fc9a50d6b2767f342a1dfd56a5513
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4594/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.