Skip to content

[TRI-1363] feat: Allow cancelling job runs from the TriggerClient #554

@ericallam

Description

@ericallam

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions