You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DAG version keep increasing if dynamic start_date #54285
It seems the DAG version is changed whenever any field is changed. But for our use case we want to have a limited catchup period, so we set start_date=datetime.now()-timedelta(days=1), which cause the dag version keep changing and dag_version table to grow over time.
What you think should happen instead?
I think we should carefully define the dag version. User should also have control of their dag's version.
Also we should only keep dag version to a small number to avoid infinite grow of the table and potential performance issue.
Activity
eladkal commentedon Aug 8, 2025
You should never use dynamic start date
https://airflow.apache.org/docs/apache-airflow/stable/faq.html#what-s-the-deal-with-start-date
widewing commentedon Aug 8, 2025
@eladkal do you have a recommendation for my use case? I need auto catch up for past day when airflow is recovered
eladkal commentedon Aug 8, 2025
Maybe what you are looking for is
catchup=True?https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dag-run.html#catchup
widewing commentedon Aug 9, 2025
@eladkal I do have
catchup=True, but I cannot set a static date. I want it only catch-up up to 1 day