question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trigger specific task in an existing DAG run

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ConstantinoSchillebeeckxcommented, Mar 17, 2021

@vemikhaylov it sure does solve the problem!

0reactions
ngmiduccommented, Feb 23, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found