Skip to content

DAG version keep increasing if dynamic start_date #54285

Closed

Description

@widewing

Apache Airflow version

3.0.3

If "Other Airflow 2 version" selected, which one?

No response

What happened?

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.

How to reproduce

Set dynamic start_date

Operating System

linux

Versions of Apache Airflow Providers

No response

Deployment

Other 3rd-party Helm chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Aug 8, 2025
  2. added
    area:MetaDB
    on Aug 8, 2025
  3. widewing commented on Aug 8, 2025

    @widewing
    Author

    @eladkal do you have a recommendation for my use case? I need auto catch up for past day when airflow is recovered

  4. eladkal commented on Aug 8, 2025

    @eladkal
    Contributor

    @eladkal do you have a recommendation for my use case? I need auto catch up for past day when airflow is recovered

    Maybe what you are looking for is catchup=True ?
    https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dag-run.html#catchup

  5. widewing commented on Aug 9, 2025

    @widewing
    Author

    @eladkal I do have catchup=True, but I cannot set a static date. I want it only catch-up up to 1 day

  6. locked and limited conversation to collaborators on Aug 10, 2025
  7. converted this issue into a discussion #54312 on Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:MetaDBarea:corekind:bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions