I have a daily Dag that contains a subdag. The subdag has five tasks, T1 through T5, that must run in order (e.g. T1 >> T2 >> T3 >> T4 >> T5)
The dag successfully runs for a few days but then I discover a bug with T4. I fix the bug and want to re-run just T4 and T5 for all previous days. It's important to NOT re-run T1-T3 because these steps take a lot longer than T4-T5.
What I've tried that has failed:
This seems to only be a problem when trying to re-run part of a subdag. If I have a bunch of tasks in a regular dag, normally selecting a task in the middle and selecting clear downstream+recursive will re-run the dag from that point.
Any suggestions would be appreciated.
SubDAGs were a legacy feature in Airflow that allowed users to implement reusable patterns of tasks in their DAGs. SubDAGs caused performance and functional issues for many users, and they have been deprecated as of Airflow 2.0 and will be removed entirely in a future release.
Catchup. An Airflow DAG defined with a start_date , possibly an end_date , and a non-dataset schedule, defines a series of intervals which the scheduler turns into individual DAG runs and executes.
You can restart the failed tasks inside a subDAG, this is how:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With