Skip to content

Conversation

@VladaZakharova
Copy link
Contributor

Previously, when a DAG run was scheduled, the logical_date of the dag_run object was always set to a fixed value (datetime(2021, 1, 1)), causing the generate_job_id() to produce the same hash and resulting in identical job_ids across repeated system test runs with no code changes.

This update changes the behavior so that, for scheduled runs, the date and time are now derived from the start_date parameter. This ensures that each run reflects the correct execution timestamp and generates unique job identifiers.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Nov 7, 2025
@VladaZakharova
Copy link
Contributor Author

@potiuk Hi there, can you please check this PR? :)

@potiuk potiuk merged commit e35561d into apache:main Nov 17, 2025
84 checks passed
aaron-wolmutt pushed a commit to aaron-wolmutt/airflow that referenced this pull request Nov 20, 2025
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants