René's URL Explorer Experiment


Title: feat(deploy): --external-id and --force for deploy idempotency by 0ski · Pull Request #4663 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(deploy): --external-id and --force for deploy idempotency by 0ski · Pull Request #4663 · triggerdotdev/trigger.dev

X Title: feat(deploy): --external-id and --force for deploy idempotency by 0ski · Pull Request #4663 · triggerdotdev/trigger.dev

Description: A deploy can carry an opaque external id (commit SHA, CI run id, release tag). Repeating an id that already deployed returns the existing version as a no-op instead of rebuilding; an id with a build in flight is rejected with 409 naming that version; a failed id rebuilds freely. --force is non-destructive to deployments that already succeeded - both persist and the higher version wins - but cancels a build still in flight, so one id never has two live builds racing to define it. Cancelling writes a terminal status and appends a finalized event, which aborts a build the platform drives; a build it does not drive keeps running but can never land, and the CLI says so. Ids are deliberately not unique - reuse is resolved in application code by highest version, never timestamps. The no-op path mints no build credentials and no event stream (TRI-12923). What that means for callers: a --force rebuild leaves two deployments holding one id, and runs triggered with it go to the higher version once the rebuild lands, so the takeover needs no separate promotion. Until a successful build exists for an id, runs triggered with it park and then expire rather than falling back to current - a failed build is therefore visible to the caller as expired runs, not as runs on the wrong release.

Open Graph Description: A deploy can carry an opaque external id (commit SHA, CI run id, release tag). Repeating an id that already deployed returns the existing version as a no-op instead of rebuilding; an id with a buil...

X Description: A deploy can carry an opaque external id (commit SHA, CI run id, release tag). Repeating an id that already deployed returns the existing version as a no-op instead of rebuilding; an id with a buil...

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

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:28bb933d-138f-227b-d386-8d8cc261fe9d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE742:23AF91:62C7C3A:8433794:6AFAF2D8
html-safe-noncef32a608892e545102caea368d935e5beb0df48230f2f1beba765da515149ef7a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzQyOjIzQUY5MTo2MkM3QzNBOjg0MzM3OTQ6NkFGQUYyRDgiLCJ2aXNpdG9yX2lkIjoiMzcxNTMxNDM3MTE3ODE5NzcyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8ce70f8d962d4fabf8c12a65f5ed55213efd6bee45d098fe15ba7b042fd4d04f
hovercard-subject-tagpull_request:4304894291
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/4663/files
twitter:imagehttps://avatars.githubusercontent.com/u/1408674?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1408674?s=400&v=4
og:image:altA deploy can carry an opaque external id (commit SHA, CI run id, release tag). Repeating an id that already deployed returns the existing version as a no-op instead of rebuilding; an id with a buil...
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/4663/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4663%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%2F4663%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/4663/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4663/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
0skihttps://github.com/0ski
oskar/feat-external-id-apihttps://github.com/triggerdotdev/trigger.dev/tree/oskar/feat-external-id-api
oskar/feat-external-id-deployhttps://github.com/triggerdotdev/trigger.dev/tree/oskar/feat-external-id-deploy
Conversation 17 https://github.com/triggerdotdev/trigger.dev/pull/4663
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/4663/commits
Checks 52 https://github.com/triggerdotdev/trigger.dev/pull/4663/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4663/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
feat(deploy): --external-id and --force for deploy idempotency https://github.com/triggerdotdev/trigger.dev/pull/4663/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/4663/files
cb9cd49 feat(deploy): --external-id and --force for deploy idempotency 0ski Aug 17, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4663/commits/cb9cd498d18f3889a40f4827156530773e9f3fcb
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4663/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
deploy-external-id.md https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-7bf23eff84d8aac68843464cbcd28b24bffa2ec630aff98d0d5ee0fb2c2c266c
api.v1.deployments.$deploymentId.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-3f726321d9fd8be310810533aac2cd4a0eb0b4a21323b6e4417afaf479e5821b
api.v1.deployments.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-b83ae250c53e8a2d3c9c2d41e1aebc730a05476b690ec532d47492162db3cea6
initializeDeployment.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
cancelSupersededDeployments.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-e828f38a92497f3e5901b43793ea705736d52b3eae9bb563ecff8881ebead21c
resolveExternalIdReuse.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-9d34bc6bcd3bccbfc2a9c7d3d1af106d7c73673b51357ff71b85d7e76f114e69
cancelSupersededDeployments.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-28e86026cbc9be17043b07c6754dd378789369467593d6bd9a1f4c8c804859d0
resolveExternalIdReuse.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-3c7ba05a082fa7f0fcd54e943b60dbb0b745d97236e2f4bece92be4719e43d89
deploy.ts https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-d7f5aeaec81b32b65d3e217c379ac8bf3616076254b49e6717c79a44265a6aa1
.changeset/deploy-external-id.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-7bf23eff84d8aac68843464cbcd28b24bffa2ec630aff98d0d5ee0fb2c2c266c
View file https://github.com/triggerdotdev/trigger.dev/blob/cb9cd498d18f3889a40f4827156530773e9f3fcb/.changeset/deploy-external-id.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4663/{{ revealButtonHref }}
apps/webapp/app/routes/api.v1.deployments.$deploymentId.tshttps://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-3f726321d9fd8be310810533aac2cd4a0eb0b4a21323b6e4417afaf479e5821b
View file https://github.com/triggerdotdev/trigger.dev/blob/cb9cd498d18f3889a40f4827156530773e9f3fcb/apps/webapp/app/routes/api.v1.deployments.%24deploymentId.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4663/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-3f726321d9fd8be310810533aac2cd4a0eb0b4a21323b6e4417afaf479e5821b
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-3f726321d9fd8be310810533aac2cd4a0eb0b4a21323b6e4417afaf479e5821b
apps/webapp/app/routes/api.v1.deployments.tshttps://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-b83ae250c53e8a2d3c9c2d41e1aebc730a05476b690ec532d47492162db3cea6
View file https://github.com/triggerdotdev/trigger.dev/blob/cb9cd498d18f3889a40f4827156530773e9f3fcb/apps/webapp/app/routes/api.v1.deployments.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4663/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-b83ae250c53e8a2d3c9c2d41e1aebc730a05476b690ec532d47492162db3cea6
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-b83ae250c53e8a2d3c9c2d41e1aebc730a05476b690ec532d47492162db3cea6
apps/webapp/app/v3/services/initializeDeployment.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
View file https://github.com/triggerdotdev/trigger.dev/blob/cb9cd498d18f3889a40f4827156530773e9f3fcb/apps/webapp/app/v3/services/initializeDeployment.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4663/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
https://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-eecb353c7c3263f855cf9e89462c446a33a77edf8e41963209fda6531e67f907
apps/webapp/app/v3/services/initializeDeployment/cancelSupersededDeployments.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-e828f38a92497f3e5901b43793ea705736d52b3eae9bb563ecff8881ebead21c
View file https://github.com/triggerdotdev/trigger.dev/blob/cb9cd498d18f3889a40f4827156530773e9f3fcb/apps/webapp/app/v3/services/initializeDeployment/cancelSupersededDeployments.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4663/{{ revealButtonHref }}
apps/webapp/app/v3/services/initializeDeployment/resolveExternalIdReuse.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4663/files#diff-9d34bc6bcd3bccbfc2a9c7d3d1af106d7c73673b51357ff71b85d7e76f114e69
View file https://github.com/triggerdotdev/trigger.dev/blob/cb9cd498d18f3889a40f4827156530773e9f3fcb/apps/webapp/app/v3/services/initializeDeployment/resolveExternalIdReuse.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4663/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4663/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.