<@ULVA73B9P> what happens when a task returns a ca...
# ask-marvin
a
@Marvin what happens when a task returns a cancelled state. Will the flow continue running other tasks? What about tasks that were dependent on that one either through its output or with wait_for?
m
The search results did not explicitly state what happens when a task returns a
Cancelled
state in terms of the flow's behavior. However, we can infer from typical workflow behaviors in systems like Prefect that if a task is cancelled, depending on the flow's configuration and the nature of dependencies, the flow might: - Continue running other tasks that are not dependent on the cancelled task. - Stop the execution of dependent tasks that require the output of the cancelled task or are explicitly set to wait for it. To better understand the exact behavior in Prefect, one would need to refer to the Prefect documentation on task cancellations or inspect the source code to see how a
Cancelled
state is handled. If you need a comprehensive answer, please let me know to continue searching for more precise information regarding task cancellations in Prefect.