Skip to content

logical_date in TriggerDagRunOperator increment DAG version each run #68612

Description

@hacherix

Under which category would you file this issue?

Airflow Core

Apache Airflow version

3.2.1

What happened and how to reproduce it?

DAG versions keep increasing with each run when using TriggerDagRunOperator.
Image
Removing the task resolves the issue.
And setting logical_date to None in the operator also resolves the issue.
When logical_date is left to its default value the issue still occurs (seems to default to timezone.utcnow()).

    TriggerDagRunOperator(
        task_id="trigger_dag",
        trigger_dag_id="trigerred_dag_id",
        logical_date=None,
        wait_for_completion=False,
    )
Image

The last 3 runs use a version with logical_date set to None.

What you think should happen instead?

The logical_date of TriggerDagRunOperator should not be serialized to determine a DAG version. In my opinion this defeats the purpose of DAG versionning when using TriggerDagRunOperator.

Operating System

No response

Deployment

Other Docker-based deployment

Apache Airflow Provider(s)

No response

Versions of Apache Airflow Providers

No response

Official Helm Chart version

Not Applicable

Kubernetes Version

No response

Helm Chart configuration

No response

Docker Image customizations

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions