abhijeets25012-tech opened a new pull request, #62142: URL: https://github.com/apache/airflow/pull/62142
### What does this PR do? Fixes an issue where repeated backfill runs for the same logical date could result in incorrect DagRun metadata due to IntegrityError handling that skipped updating existing DagRuns. ### Root Cause When a DagRun already existed for a logical_date, backfill logic skipped creation without ensuring the run_type and triggering_user_name remained consistent with BACKFILL semantics. ### Fix When IntegrityError occurs: - Fetch the existing DagRun - Ensure run_type is set to BACKFILL_JOB - Preserve triggering_user_name - Link BackfillDagRun correctly ### Additional Notes No new dependencies are introduced. This ensures consistent metadata for all backfill runs, first or subsequent. Closes: #62126 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
