o-nikolas commented on code in PR #67217:
URL: https://github.com/apache/airflow/pull/67217#discussion_r3463219242
##########
airflow-core/src/airflow/executors/workloads/base.py:
##########
@@ -66,6 +66,13 @@ class BundleInfo(BaseModel):
name: str
version: str | None = None
+ version_data: dict[str, Any] | None = None
+ """Optional structured metadata for this bundle version (e.g., an S3
object manifest).
+
+ This field is serialized on every workload payload sent through executor
channels
+ (Celery/Redis, SQS, K8s pod annotations, etc.). Keep payloads small —
ideally under
Review Comment:
Updated the docstring to your wording.
On the opaque-pointer vs dict-on-wire question, we could consider that, I
think each provider can decide what they want the version json data to contain
and how to handle it. Not sure that's something that requires any changes here
##########
task-sdk/src/airflow/sdk/execution_time/callback_supervisor.py:
##########
@@ -227,6 +227,7 @@ def _target():
bundle = DagBundlesManager().get_bundle(
name=bundle_info.name,
version=bundle_info.version,
+ version_data=bundle_info.version_data,
Review Comment:
Updated the docstring to your wording.
On the opaque-pointer vs dict-on-wire question, we could consider that, I
think each provider can decide what they want the version json data to contain
and how to handle it. Not sure that's something that requires any changes here.
--
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]