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 TriggerClient that allowed cancelling a run:
await client.cancelRun(runId)
This 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.
Describe alternate solutions
N/A
Additional information
No response
TRI-1363
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
TriggerClientthat allowed cancelling a run:This will require a new endpoint
POST /api/v1/runs/$runId/cancel. It should use theCancelRunServicewhich is used when cancelling a run from the dashboard. The response body should be the same response as theGET /api/v1/runs/$runIdendpoint.Describe alternate solutions
N/A
Additional information
No response
TRI-1363