René's URL Explorer Experiment


Title: feat(sdk): add bulk replay to api and sdk by carderne · Pull Request #4105 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(sdk): add bulk replay to api and sdk by carderne · Pull Request #4105 · triggerdotdev/trigger.dev

X Title: feat(sdk): add bulk replay to api and sdk by carderne · Pull Request #4105 · triggerdotdev/trigger.dev

Description: Summary Adds SDK and API support for run bulk actions. You can now create bulk cancel or replay actions from @trigger.dev/sdk using run IDs or the same filters as runs.list(), then retrieve, list, poll, or abort the action by its bulk_ handle. Tests, docs, changesets added. Design The dashboard bulk action service now accepts structured filters instead of reading directly from a dashboard request, so the dashboard and API share the same creation path. Replay actions created through the API are attributed with the existing api trigger source, while dashboard-created actions keep dashboard. The SDK exposes the new surface under runs.bulk.*, including targetRegion for replay region overrides and cursor pagination for listing bulk actions. Filters and runIds Nuance on filters. If filter is provided, it MUST have at least one key. This is to remove the footgun of passing no filter and selecting all runs. { action: "cancel", runIds: ["run_1"] } // valid { action: "cancel", runIds: [] } // invalid, min(1) { action: "cancel", filter: { status: "FAILED" } } // valid { action: "cancel", filter: {} } // invalid { action: "cancel", filter: {}, runIds: ["run_1"] } // invalid

Open Graph Description: Summary Adds SDK and API support for run bulk actions. You can now create bulk cancel or replay actions from @trigger.dev/sdk using run IDs or the same filters as runs.list(), then retrieve, list, ...

X Description: Summary Adds SDK and API support for run bulk actions. You can now create bulk cancel or replay actions from @trigger.dev/sdk using run IDs or the same filters as runs.list(), then retrieve, list, ...

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

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:fd71437a-4e13-c24c-89ac-24d270b1fbcc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8110:29CAD0:3D5903:5B02CF:6AFAE4C5
html-safe-noncee2ed19043fee1c9b063d3b52b47fe46b3272cc0fbcfe0e94155570ecf184ac63
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTEwOjI5Q0FEMDozRDU5MDM6NUIwMkNGOjZBRkFFNEM1IiwidmlzaXRvcl9pZCI6IjM5MjY5MjA5ODAyODYwNzIwMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac352d0268a698fd1897407cee146dbe6b715e69d8c753f8cdc30c534860dc8aa8
hovercard-subject-tagpull_request:3977633058
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/4105/files
twitter:imagehttps://avatars.githubusercontent.com/u/19817302?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19817302?s=400&v=4
og:image:altSummary Adds SDK and API support for run bulk actions. You can now create bulk cancel or replay actions from @trigger.dev/sdk using run IDs or the same filters as runs.list(), then retrieve, list, ...
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
release12fff95459b24b0f882a66698ee6a36a5934d247
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4105/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4105%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%2F4105%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/4105/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4105/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4105/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
cardernehttps://github.com/carderne
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feature/tri-6326-bulk-actions-via-the-sdkapihttps://github.com/triggerdotdev/trigger.dev/tree/feature/tri-6326-bulk-actions-via-the-sdkapi
Conversation 20 https://github.com/triggerdotdev/trigger.dev/pull/4105
Commits 19 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits
Checks 64 https://github.com/triggerdotdev/trigger.dev/pull/4105/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4105/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4105/files
feat(sdk): add bulk replay to api and sdk https://github.com/triggerdotdev/trigger.dev/pull/4105/files#top
Show all changes 19 commits https://github.com/triggerdotdev/trigger.dev/pull/4105/files
b41f624 feat: add bulk replay to API and SDK carderne Jul 1, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/b41f6247d54c3941370cc6a0b4971b6c70b5ecb4
2bfe12f some reads from primary to avoid read-your-write lag carderne Jul 1, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/2bfe12f49a7fc72c205f934fafbb31ed93473b3d
f2da98f improve errors carderne Jul 1, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/f2da98f348390492b44d4098cfbe383885187de8
10b5a32 add tests carderne Jul 1, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/10b5a328964b45cceea3354db27330284f50ed2b
215c949 improve bulk action service carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/215c949300f7fdd7ce27b9a8c0541fe7deef4025
e9f40c8 improve api schema and types carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/e9f40c8d9de59b7ff07f524110d56a92f0491ac8
10bedca add docs carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/10bedca04c9ae13b8fcdb4ac170e80947584eb54
f0ca0ee format carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/f0ca0eefc55b827ce4565a3497d95a851a518802
0db442d format, lint carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/0db442d5c2d220e3254bbb2cd5e9dc944af24415
b398df1 fix e2e test carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/b398df16de923283f402be81c6875468a0acc155
773181a disallow empty filter carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/773181a01c1f6f9e03b12335d8e735f1b57a6e0c
6eb606c simplify route reads carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/6eb606cc4f136f4c2d838d2ef4b17acc64ebb065
b696c94 move reads to replica carderne Jul 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/b696c9420461953ee7d48f654804d579810fb737
234ecd6 add max concurrency to bulk replays carderne Jul 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/234ecd6307d30fce11e83cf55e4eb01b0b7c9321
4de8db1 add x-should-retry:false and update docs carderne Jul 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/4de8db1caa037c79a74269b7233ddcef4a11cac0
334da4d max run ids and max name length carderne Jul 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/334da4d1da3fa7693122e87a4820716a5374f937
a5f5c47 only count recent bulk actions in concurrency check carderne Jul 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/a5f5c47a6b79470ec8166e3b8f8442ef02d7cc7c
3b1e171 add some tests for new changes carderne Jul 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/3b1e171e5ef38c34ff5d5555c4bbff37597594c3
dcf5a61 update docs for review comment carderne Jul 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4105/commits/dcf5a61c8f37179ab08640b885a68f299c97c9cd
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4105/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4105/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4105/files
bulk-actions-sdk-api.md https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-bbf847b33f19412602f6699863e859c0b4e0cae9e1743724f0d34754054a6111
bulk-actions-api-sdk.md https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-469a2a04e7e01b2e9d0be0fc287f295dd13f73e25d615e7d2e3fd9f3f57b8b8d
env.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
ApiBulkActionPresenter.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-d64ad9f4f0a6872468ddf82d600eaceec835bafd8335aa16d4cd1f7abaf058de
api.v1.bulk-actions.$bulkActionId.abort.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-7601f6e4ba72b6bedd0a525bc17c2feb843979a5b857a13c0f76bd9b4716f291
api.v1.bulk-actions.$bulkActionId.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-1bde7d068054e969a016f069547070dc0abfd04614556ed462638603e7cfa033
api.v1.bulk-actions.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-3df661003625e2e68823accc09a10cd11f577b25716622a57ef8afb954d9ca6a
resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.bulkaction.tsx https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-06b78468073cba06f35740876c665924e7b122c766ed4d7154eae5bf8a612aa4
BulkActionV2.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-09fabf1a9b5dcf048077ab158eb66fdd148faa2152797f7edc5968a1702f6db0
bulk-actions-api.e2e.full.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-85026ad84611c3b93e58208fd8fd4716a2325000ebe378e2d41f0bc345a091a9
docs.json https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-873ce17c654718debe2fe308a2f2279bde8663686423c51f97fab2dd0722b8d9
bulk-actions.mdx https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-1f7561f0bd30d7a99c95a16952874b9d1ea7171c52349dfbf0722780d45d5a5a
migration.sql https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-7319c71c9513a8c841c9e1650c81e854ac32e8d8b3c59642a86367624aa48b57
schema.prisma https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
bulkActions.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-0ce98fa17005c2ba6ca8799fd23c3fe3a4116c0fce85e62fd87e80e3bf8dd240
index.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-a3dd70188f22b9a8944982bd01922236614664bcbd18c2ae9f83f4beb5d4d5c7
types.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-f382a6851a87491e9f041f37f86c228f07c1e4892b9a3c0b5e20a215c9016335
api.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-c929980f61a97fbebd23b497e2303aa302e5365161fbea596997800df6a4c6c4
index.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-b020d742b6377486538cb79ac7ada8113b9cb5bf564869f8f7aa3b96bf64f1a0
runs-bulk.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-141679049e8cdce344deb95b93168e579b34c65e25a07f95fbe3f6278319d48d
runs.ts https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-47209e8eb41c0159ebefc80f19b6080164719d78fab5308141ff32979667cf99
.changeset/bulk-actions-sdk-api.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-bbf847b33f19412602f6699863e859c0b4e0cae9e1743724f0d34754054a6111
View file https://github.com/triggerdotdev/trigger.dev/blob/dcf5a61c8f37179ab08640b885a68f299c97c9cd/.changeset/bulk-actions-sdk-api.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4105/{{ revealButtonHref }}
.server-changes/bulk-actions-api-sdk.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-469a2a04e7e01b2e9d0be0fc287f295dd13f73e25d615e7d2e3fd9f3f57b8b8d
View file https://github.com/triggerdotdev/trigger.dev/blob/dcf5a61c8f37179ab08640b885a68f299c97c9cd/.server-changes/bulk-actions-api-sdk.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4105/{{ revealButtonHref }}
apps/webapp/app/env.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
View file https://github.com/triggerdotdev/trigger.dev/blob/dcf5a61c8f37179ab08640b885a68f299c97c9cd/apps/webapp/app/env.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4105/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
https://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
apps/webapp/app/presenters/v3/ApiBulkActionPresenter.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-d64ad9f4f0a6872468ddf82d600eaceec835bafd8335aa16d4cd1f7abaf058de
View file https://github.com/triggerdotdev/trigger.dev/blob/dcf5a61c8f37179ab08640b885a68f299c97c9cd/apps/webapp/app/presenters/v3/ApiBulkActionPresenter.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4105/{{ revealButtonHref }}
apps/webapp/app/routes/api.v1.bulk-actions.$bulkActionId.abort.tshttps://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-7601f6e4ba72b6bedd0a525bc17c2feb843979a5b857a13c0f76bd9b4716f291
View file https://github.com/triggerdotdev/trigger.dev/blob/dcf5a61c8f37179ab08640b885a68f299c97c9cd/apps/webapp/app/routes/api.v1.bulk-actions.%24bulkActionId.abort.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4105/{{ revealButtonHref }}
apps/webapp/app/routes/api.v1.bulk-actions.$bulkActionId.tshttps://github.com/triggerdotdev/trigger.dev/pull/4105/files#diff-1bde7d068054e969a016f069547070dc0abfd04614556ed462638603e7cfa033
View file https://github.com/triggerdotdev/trigger.dev/blob/dcf5a61c8f37179ab08640b885a68f299c97c9cd/apps/webapp/app/routes/api.v1.bulk-actions.%24bulkActionId.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4105/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4105/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4105/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.