#abort

3 messages · Page 1 of 1 (latest)

turbid trellis
#

how to abort action call midflight

spiral geyserBOT
#

Hi @turbid trellis. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but the knowledge sources do not describe a way to truly abort (i.e., stop execution of) an in-progress Convex action midflight. Both the Action Retrier and Workflow components allow you to cancel future retries or prevent further steps from running, but they do not stop an action that is already executing—any in-progress work will continue until it completes. Canceling a run or workflow only prevents further execution after the current step finishes, not during its execution.

For example, the Action Retrier's cancel method and the Workflow's cancel method both state that in-progress actions or steps will finish executing even after cancellation is requested. This is a best-effort cancellation and does not guarantee immediate abortion of running code Action Retrier API Workflow Canceling.

If you need to abort an action midflight, the current Convex platform does not provide a built-in mechanism for this.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: