https://prefect.io logo
f

Florian L

11/24/2020, 10:35 AM
Hi, i was wondering what is the best practice to cancel a flow run from one of our task ? Currently i'm raising a
signal.ENDRUN(state.Cancelled())
which put my task in the right state, but the following tasks are still executed meaning the trigger all_successfull is still true. Any idea what am i doing wrong ?
j

josh

11/24/2020, 12:36 PM
Hmm hard to say without seeing what your flow looks like because raising an
ENDRUN
should not permit the following dependent task to run. If you wouldn’t mind could you open an issue on the repo with your flow and what you are attempting? Better to keep snippets and discussions there where it is more easily searchable 🙂