Skip to content

Mark tasks as critical #15951

@mporracindie

Description

@mporracindie

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:
Captura de Pantalla 2021-05-19 a la(s) 14 50 48

Are you willing to submit a PR?
Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions