Title: [TRI-1363] feat: Allow cancelling job runs from the TriggerClient · Issue #554 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: [TRI-1363] feat: Allow cancelling job runs from the TriggerClient · Issue #554 · triggerdotdev/trigger.dev
X Title: [TRI-1363] feat: Allow cancelling job runs from the TriggerClient · Issue #554 · triggerdotdev/trigger.dev
Description: Is your feature request related to a problem? Please describe. There is currently no way to cancel a job run programmatically. Describe the solution you'd like to see It would be great if there was an instance method exposed on TriggerCl...
Open Graph Description: Is your feature request related to a problem? Please describe. There is currently no way to cancel a job run programmatically. Describe the solution you'd like to see It would be great if there was...
X Description: Is your feature request related to a problem? Please describe. There is currently no way to cancel a job run programmatically. Describe the solution you'd like to see It would be great if there...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/554
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[TRI-1363] feat: Allow cancelling job runs from the TriggerClient","articleBody":"### Is your feature request related to a problem? Please describe.\n\nThere is currently no way to cancel a job run programmatically.\n\n### Describe the solution you'd like to see\n\nIt would be great if there was an instance method exposed on `TriggerClient` that allowed cancelling a run:\r\n\r\n```ts\r\nawait client.cancelRun(runId)\r\n```\r\n\r\nThis will require a new endpoint `POST /api/v1/runs/$runId/cancel`. It should use the `CancelRunService` which is used when cancelling a run from the dashboard. The response body should be the same response as the `GET /api/v1/runs/$runId` endpoint.\n\n### Describe alternate solutions\n\nN/A\n\n### Additional information\n\n_No response_\n\n\u003csub>[TRI-1363](https://linear.app/triggerdotdev/issue/TRI-1363/feat-allow-cancelling-job-runs-from-the-triggerclient)\u003c/sub>","author":{"url":"https://github.com/ericallam","@type":"Person","name":"ericallam"},"datePublished":"2023-10-04T14:23:11Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/554"}
| react-profiling | 0 |
| react-import-map | react,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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87f37f5d-8384-fc15-011c-f41e24ecad70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD44:31FA58:134AB1B:1AD8B12:6AFADE26 |
| html-safe-nonce | 041b0173c6aacee24097f1bda1f08035485242dd18875731ec078330619e320a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDQ0OjMxRkE1ODoxMzRBQjFCOjFBRDhCMTI6NkFGQURFMjYiLCJ2aXNpdG9yX2lkIjoiMjI4NDAxMDMwNDk2ODUxNTExMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7d1b942027ba68bd5db7f209969230f673df75b522b9e9f1247d864ae0e7ab0c |
| hovercard-subject-tag | issue:1926336362 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/554/issue_layout |
| twitter:image | https://opengraph.githubassets.com/355fa78f31b31d7dafe09fc58001ba97d7e82505ac30d53c14e78f3d1a063031/triggerdotdev/trigger.dev/issues/554 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/355fa78f31b31d7dafe09fc58001ba97d7e82505ac30d53c14e78f3d1a063031/triggerdotdev/trigger.dev/issues/554 |
| og:image:alt | Is your feature request related to a problem? Please describe. There is currently no way to cancel a job run programmatically. Describe the solution you'd like to see It would be great if there was... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericallam |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a7ae932999cc6d511008dbf980ff9efad2a31f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width