do y'all know how to propogate canceled states fro...
# ask-community
a
do y'all know how to propogate canceled states from the flow to task? it seems lik the task just keeps running when i cancel a flow... retrying the flow also doesnt work until i explicitly set the state of the active task to "cancelled" (even after having cancelled the flow)
k
Hey, is it a mapped task that keeps running?
a
nope
i am using a localdaskexecutor tho
the task does run an infinite while loop tho
would that affect prefect's ability to cancel the task?
k
I’m not sure on this, I’ll get back to you tomorrow when I can ask the team
Sorry for the delay, I think the general answer is it’s very hard to stop Python processes so we don’t have strong guarantees around stopping processing running on Dask.
a
okay that is basically what i suspected, thank you for following up on this!
and there is no way to run tasks in parallel with a local (non-dask) executor, correct @Kevin Kho?
k
Yes