-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Description
Description
The idea is to be able to mark specific tasks as critical making them define the output of the entire dag.
Use case / motivation
I'll use a specific example but this can be extended to many use cases. Let's say you use an operator to create an EMR cluster one for summiting code to the cluster and finally a cleanup one for killing the cluster when all the previous have finished.
The task submitting code to EMR is critical and I would want the whole DAG run to be marked as failed if any of them fails. However, this doesn't happen cause the cleanup always runs successfully. (which is expected since we want the cluster finished regardless of the output of the previous tasks)
With this example, I think I'm being clear. The end idea is to have more control over the dag run state when you have things like this:
![]()
Are you willing to submit a PR?
Yes