I'm using Prefect 2 and trying to cancel a flow run from within a non-async task under certain conditions. I can return a Cancelled state from the task, but the flow continues executing the rest of the tasks before completing with a Cancelled state itself. I want the flow to cease execution immediately with a Cancelled state.
z
Zanie
05/02/2023, 3:25 PM
You’d need to access the result of the task from the flow
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.