-
-
Notifications
You must be signed in to change notification settings - Fork 939
Closed
Labels
area/clientsenhancementNew feature or requestNew feature or request🎃 hacktoberfest💎💎 250 pointsThis issue is worth 250 points in the hacktoberfest leaderboardThis issue is worth 250 points in the hacktoberfest leaderboard
Milestone
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 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
Metadata
Metadata
Assignees
Labels
area/clientsenhancementNew feature or requestNew feature or request🎃 hacktoberfest💎💎 250 pointsThis issue is worth 250 points in the hacktoberfest leaderboardThis issue is worth 250 points in the hacktoberfest leaderboard