how to abort task running? Cancelling just stoping a flow and waiting for running tasks finish.. but how to stop immediately?
08/10/2021, 3:38 PM
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?
08/10/2021, 3:41 PM
flow with 20 tasks.. one of them freezes. other succeded. I want to cancel flow but it is influently stays in “cancelling” status.
08/10/2021, 3:42 PM
Is that flow running on a Dask cluster?
08/10/2021, 6:45 PM
cloud prefect + local server on docker
08/11/2021, 3:25 AM
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