Reputation: 13
We are currently evaluating airflow for a project. I was wondering if there is a way to stop/start individual dagruns while running a DAG multiple times in parallel. Pause/unpause on dag_id seems to pause/unpause all the dagruns under a dag. Instead we want to pause individual dagruns (or tasks within them). Let me know if this is achievable in airflow.
If its not possible, here are other alternatives I am thinking of, let me know your opinion on these
Upvotes: 1
Views: 1954
Reputation: 4366
There's nothing "baked" into Airflow to support this but you could (ab)use the state of the DagRun
by changing it to "failed"
to pause and then back to "running"
to resume; you won't be able to blanket unpause but for testing it should be workable.
Upvotes: 1