-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backfilling ignores task-level start_date and end_date #17734
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
It make sense that backfill should respect the task definition for tasks Giving another example if we have a dag as:
and you are running If someone has a different take on that I would love to hear the reasons |
I believe this difference originates in the dependency definitions for (manually-triggered) backfills and scheduler-triggered runs. In This difference dates way back to #5079 when |
@dstandish one thing to note when reimplementing backfilling with the scheduler. |
thanks @uranusjr . This seems to be desirable behavior, no? |
Do you mean ignoring is desirable, or respecting? Airflow currently has both, depending on whether the run is triggered by the |
Apache Airflow version:
2.1.0
OS:
Debian GNU/Linux 10
Apache Airflow Provider versions:
Irrelevant for this issue.
Deployment:
K8S using a custom helm chart
What happened:
When backfilling a DAG with a --mark-success flag, all tasks (within specified timerange) are set to success.
What you expected to happen:
I expected the task-level start_date and end_date to be taken into account. As such, a task-instance would only be created if the dag execution date is within the task date range.
How to reproduce it:
DAG:
Backfill command:
airflow dags backfill -s 2020-08-01 -e 2021-8-18 --mark-success start_date_test_dag
Are you willing to submit a PR?
Sure, if this is unwanted behaviour and there is no workaround (other than backfilling each task individually).
The text was updated successfully, but these errors were encountered: