github-actions[bot] opened a new pull request, #66518: URL: https://github.com/apache/airflow/pull/66518
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. (cherry picked from commit 38a51dc1faa81c3493d0c444c901afff67bfc393) Co-authored-by: Ephraim Anierobi <[email protected]> -- 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]
