ephraimbuddy opened a new pull request, #66485:
URL: https://github.com/apache/airflow/pull/66485

   When a DAG has disable_bundle_versioning=True, dag_run.bundle_version is 
left None at trigger time, but DagVersion.bundle_version still records the 
bundle SHA captured during DAG parse. Scheduler-emitted task callbacks (zombie 
tasks, heartbeat timeouts, stuck-in-queued) sourced bundle_version from 
DagVersion, so the DFP would check out a pinned versions/<sha>/ working tree 
and write a _tracking lockfile for a SHA the run was never pinned to — causing 
the callback to run against different code than the task itself, leaving 
per-version checkouts on disk, and blocking stale bundle cleanup.
   
   Source bundle_version from dag_run.bundle_version so the callback inherits 
the same unpinned state as the run and executes against the same on-disk code 
the task did.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes (please specify the tool below)
   
   Generated-by: Claude Opus 4.7
   


-- 
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]

Reply via email to