airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Enabling and Disabling the Task Before the DAG Run From UI and API

Open Amar1404 opened this issue 3 years ago • 1 comments
trafficstars

Description

Enabling and Disabling the task for the particular DAG from the UI and API. or using the parameter that disable it. This was it is easy to disable a particular task easily while running manually or schedule. The UI gives us the feature to select the task to disable it before triggering it manually

Use case/motivation

So for the backfill or running manually in a DAG if we don't want to run a particular task we can disable it, from UI and in the next schedule the particular task will not run. That way we don't have to remove the code for the task.

Related issues

No response

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

Amar1404 avatar Sep 22 '22 11:09 Amar1404

Thanks for opening your first issue here! Be sure to follow the issue template!

boring-cyborg[bot] avatar Sep 22 '22 11:09 boring-cyborg[bot]

I think this one will be hard to implement and it is not something we really want to do. Tasks have dependencies to other tasks, and it might get tricky to decide what to do when one or more tasks are disabled.

But I wonder what others think,

potiuk avatar Sep 22 '22 17:09 potiuk