trigger specific task in an existing DAG run
See original GitHub issueDescription
I may be missing it, but I couldn’t find a way of triggering an individual task to run within an existing DAG run through the REST API.
This endpoint nearly gets me there, however the only allowed states are either success
or fail
- if I could set the state to clear
.
Use case / motivation
For our testing purposes, we’d like to trigger an individual task and confirm that it behaves as expected.
Are you willing to submit a PR?
Oh yeah!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Scheduling & Triggers - Apache Airflow
The Airflow scheduler monitors all tasks and all DAGs, and triggers the task instances whose dependencies have been met. Behind the scenes, it...
Read more >A Guide on Different Ways to Trigger Airflow DAGs - Hevo Data
In this guide, we will discuss the concept of scheduling, DAG Runs, and how to trigger Airflow DAGs in Airflow. Let's begin.
Read more >Run a new task under the Airflow DAG which is already ...
I've added a new task under the existing DAG and since its deployment onwards (say, 2022-03-08), it is running fine.
Read more >Rerun Airflow DAGs | Astronomer Documentation
You need to rerun a failed task for one or multiple DAG runs. · You want to deploy a DAG with a start...
Read more >Implement DAG Dependencies Using TriggerDagRun Operator
Trigger DAG Run Operator · The config input or a specific execution date for a dependent DAG can be specified using the conf...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vemikhaylov it sure does solve the problem!
@ConstantinoSchillebeeckx , how did you do it in the end? Did you use:
https://airflow.apache.org/api/v1/dags/{dag_id}/clearTaskInstances
?I was also wondering now how to clear a task of a dagRun.