Hi! how to abort task running? Cancelling just sto...
# prefect-ui
r
Hi! how to abort task running? Cancelling just stoping a flow and waiting for running tasks finish.. but how to stop immediately?
k
Hey @Ruslan, tasks running on different hardware can’t always be cancelled so it is a best effort. What is your setup for this flow?
r
flow with 20 tasks.. one of them freezes. other succeded. I want to cancel flow but it is influently stays in “cancelling” status.
k
Is that flow running on a Dask cluster?
r
cloud prefect + local server on docker
k
Hey @Ruslan, I checked with the team on this. In general, Prefect sends a signal to cancel the task, but the infrastructure doesn’t always follow it. For example, if a task spawns a thread, it is hard for Prefect to kill that thread. See this