Hello Prefect team,
Are subflows supposed to be canceled when parent flows are cancelled?
If that is not a default behavior, what is the best way for me to get the ids of subflows (assuming I have the parent flow id) so I can manually cancel them?
b
Bianca Hoch
05/11/2023, 6:27 PM
Hey Nicholas, to my understanding, subflows should be cancelled when their parent flows are cancelled. That functionality was added with the v2.7.10 release.
n
Nicholas Torba
05/30/2023, 2:01 PM
Hi @Bianca Hoch, thank you for this helpful answer.
Do you know the best way for me to cancel a Flow via the api?
Currently, I directly set the set of a parent flow run to "CANCELLED", but the subflow runs continue to run. It's seems as though I'm missing something
Nicholas Torba
05/30/2023, 2:10 PM
It also doesn't seem to work when i cancel from the UI as well