How do I stop or cancel a task run?

The run seems to have crashed already, but it still shows running for 9 hours. Is there a way to manually stop the run?

It’s blocking all the other runs because I have concurrency set to 1

From flow code you could do:

But we don’t have a feature to cancel a run from the UI. And even if we would, this would allow canceling a flow run, not a task run. Does it answer your question?

Yeah I guess a cancel flow run would be nice (equivalent of a CTRL+C) for cases where the flow run is stuck or the flow run was run accidentally.

Or, I wonder if there’s a way to timeout task runs?

1 Like

I agree! Canceling a flow run from the UI is a must-have, this will definitely be added.

Regarding task-level timeouts:

1 Like