René's URL Explorer Experiment


Title: improvement(cron): fire-and-forget for cron-invoked endpoints by TheodoreSpeaks · Pull Request #4764 · simstudioai/sim · GitHub

Open Graph Title: improvement(cron): fire-and-forget for cron-invoked endpoints by TheodoreSpeaks · Pull Request #4764 · simstudioai/sim

X Title: improvement(cron): fire-and-forget for cron-invoked endpoints by TheodoreSpeaks · Pull Request #4764 · simstudioai/sim

Description: Summary schedules/execute, the webhook poll routes, notifications/poll, and renew-subscriptions now ack the cron caller immediately with 202 and run the work detached in the background, so the caller's request timeout never trips and retries can't pile duplicate runs on the server Added lib/core/utils/background.ts (runDetached); extracted runScheduleTick from the schedule route; renew-subscriptions gained a Redis lock (it had none) Schedule overlap is deduped by the existing FOR UPDATE SKIP LOCKED row claiming (+ advisory locks in DB-fallback mode); no in-process guard needed. Poll/notifications keep their existing Redis lock, with release moved into the detached finally Type of Change Improvement Testing Tested manually. bun run lint, bun run check:api-validation:strict, and unit/route tests across the touched files all pass. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary schedules/execute, the webhook poll routes, notifications/poll, and renew-subscriptions now ack the cron caller immediately with 202 and run the work detached in the background, so the cal...

X Description: Summary schedules/execute, the webhook poll routes, notifications/poll, and renew-subscriptions now ack the cron caller immediately with 202 and run the work detached in the background, so the cal...

Opengraph URL: https://github.com/simstudioai/sim/pull/4764

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:ddf80895-bbdf-d372-140d-91a14aee000a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA932:FD97C:77BAE:AAF44:6AFB49A8
html-safe-nonce3821a4b801720538205e15e942a63af541e2d43a03268513f42000b632134ac4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTMyOkZEOTdDOjc3QkFFOkFBRjQ0OjZBRkI0OUE4IiwidmlzaXRvcl9pZCI6IjU2NzM2OTM5NTA2MTk4OTYyMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb858113494970e263d9091725ec343f96da7d3e892d49ef69174b274a43d1d5f
hovercard-subject-tagpull_request:3758417827
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/simstudioai/sim/pull/4764/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary schedules/execute, the webhook poll routes, notifications/poll, and renew-subscriptions now ack the cron caller immediately with 202 and run the work detached in the background, so the cal...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
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
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4764/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4764%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%2Fsimstudioai%2Fsim%2Fpull%2F4764%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=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4764/files
Reloadhttps://github.com/simstudioai/sim/pull/4764/files
Reloadhttps://github.com/simstudioai/sim/pull/4764/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/schedule-fire-forgethttps://github.com/simstudioai/sim/tree/feat/schedule-fire-forget
Conversation 9 https://github.com/simstudioai/sim/pull/4764
Commits 3 https://github.com/simstudioai/sim/pull/4764/commits
Checks 13 https://github.com/simstudioai/sim/pull/4764/checks
Files changed https://github.com/simstudioai/sim/pull/4764/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4764/files
improvement(cron): fire-and-forget for cron-invoked endpoints https://github.com/simstudioai/sim/pull/4764/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/4764/files
cb5b5f4 improvement(cron): fire-and-forget for cron-invoked endpoints TheodoreSpeaks May 27, 2026 https://github.com/simstudioai/sim/pull/4764/commits/cb5b5f4d2f223a8bb31b7e2fc5a1aa9082254682
1877f2c fix(cron): add staleness takeover to single-flight guard TheodoreSpeaks May 27, 2026 https://github.com/simstudioai/sim/pull/4764/commits/1877f2c06bab49c5214edb77de064e3d4f2ac534
82d194c improvement(cron): drop single-flight guard, rely on DB row claiming TheodoreSpeaks May 27, 2026 https://github.com/simstudioai/sim/pull/4764/commits/82d194cae584fcc6a67a30709b086baff3dd5de7
Clear filters https://github.com/simstudioai/sim/pull/4764/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4764/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4764/files
route.test.ts https://github.com/simstudioai/sim/pull/4764/files#diff-bdae57f81b46253b34cb20c212445f57ef8d0011475a5e3facfc035d90f5072e
route.ts https://github.com/simstudioai/sim/pull/4764/files#diff-6714461a1724b47caea7ec99ade9f088f1a94ca9638f480c4e99ec7c86e933d7
route.test.ts https://github.com/simstudioai/sim/pull/4764/files#diff-90d81df9fcdb623183c29874b9b8271d5180fe630d8a376eeefd8071e38dab6c
route.ts https://github.com/simstudioai/sim/pull/4764/files#diff-4a82d62b62c2ffa2cc56d928e5d4d40a962b0cecabddfe8efa86e6cbacf5d584
route.test.ts https://github.com/simstudioai/sim/pull/4764/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
route.ts https://github.com/simstudioai/sim/pull/4764/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
route.test.ts https://github.com/simstudioai/sim/pull/4764/files#diff-0af642f003a22e3323313b8011505a6656d7c41ae4fa39f6bcf9b1883400da38
route.ts https://github.com/simstudioai/sim/pull/4764/files#diff-96a4a2519c486579560de81cc230b2278f8370e20fb9ac5892365c97d644521d
schedules.ts https://github.com/simstudioai/sim/pull/4764/files#diff-ffd7f82c167905e12e3dc4f21682fd5480ec9f6ba436c434169b830fe21869e1
background.test.ts https://github.com/simstudioai/sim/pull/4764/files#diff-42856ab793f8f2d79160f1f6249d104fa45f1888da3b51e57780c57275e23251
background.ts https://github.com/simstudioai/sim/pull/4764/files#diff-ce2ca80deb3f0695746ad1110852830ae5e73609b27dbcd1e91e52b042bb5d35
apps/sim/app/api/cron/renew-subscriptions/route.test.tshttps://github.com/simstudioai/sim/pull/4764/files#diff-bdae57f81b46253b34cb20c212445f57ef8d0011475a5e3facfc035d90f5072e
View file https://github.com/simstudioai/sim/blob/82d194cae584fcc6a67a30709b086baff3dd5de7/apps/sim/app/api/cron/renew-subscriptions/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4764/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/4764/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4764/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.