Skip to content

Is it possible to stop a STARTING run via graphql #4517

Answered by gibsondan
gregd33 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, there's an optional argument to terminatePipelineExecution that can be used to 'force terminate' the run, moving it into a FAILURE state without necessarily cleaning up all the underlying resources that it spun up (for example, the k8s pod). This can be used to terminate runs that are stuck in STARTING.

sample mutation:

mutation($runId:ID!, $terminatePolicy:TerminatePipelinePolicy) {
  terminatePipelineExecution(runId:$runId, terminatePolicy:$terminatePolicy) {
    __typename
  }
}

with 

{"terminatePolicy": "MARK_AS_CANCELED_IMMEDIATELY", "runId": "your-run-id-here"}

Just filed an issue to include that in the documentation for the GraphQL API.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gregd33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants