o-nikolas opened a new pull request, #67217:
URL: https://github.com/apache/airflow/pull/67217

   This is PR 2 of the S3 Dag Bundle versioning series. PR 1 (#66491) added the 
`BundleVersion` dataclass, Alembic migration, and persistence path. This PR 
completes the worker-side plumbing so that version data reaches the bundle 
instance at task execution time.
   
   Adds `version_data` to `BundleInfo` and threads it through the worker-side 
bundle initialization path so that structured version metadata (e.g., S3 
manifests) reaches the bundle at task execution time.
   
   **Changes:**
   - `BundleInfo` gains `version_data: dict | None = None` field
   - `ExecuteTask.make()` reads `version_data` from `DagVersion` (via 
eagerly-loaded relationship)
   - Scheduler query adds `selectinload(TI.dag_version)` to avoid N+1 queries
   - `BaseDagBundle.__init__` accepts and stores `version_data`
   - `DagBundlesManager.get_bundle()` passes `version_data` to the bundle 
constructor
   - `task_runner.parse()` and `callback_supervisor` pass `version_data` through
   - Task SDK `_generated.py` updated with the new field
   
   related: #66491
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4)
   
   Generated-by: Claude Code (Opus 4) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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