Add XCom read access to callback supervisor comms channel#66611
Draft
seanghaeli wants to merge 1 commit intoapache:mainfrom
Draft
Add XCom read access to callback supervisor comms channel#66611seanghaeli wants to merge 1 commit intoapache:mainfrom
seanghaeli wants to merge 1 commit intoapache:mainfrom
Conversation
Callbacks running inside the CallbackSubprocess can now read XCom values via the same supervisor IPC mechanism used for Connections and Variables. The caller must supply explicit dag_id, run_id, and task_id since callbacks have no implicit task context. This adds GetXCom to the CallbackToSupervisor union and routes it through a new shared handle_get_xcom handler in request_handlers.py. Only read access (GetXCom) is exposed; SetXCom and DeleteXCom remain out of scope for callbacks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add read-only XCom access to the callback supervisor IPC channel, allowing
callbacks to fetch XCom values from upstream tasks via the same mechanism
used for Connections and Variables.
Motivation
PR #65269 added Connection, Variable, and MaskSecret comms channels to the
callback supervisor. XCom was deferred because it requires explicit dag_id,
run_id, and task_id (callbacks have no implicit task context). This PR adds
that missing piece.
Changes
GetXComto theCallbackToSupervisorunion typehandle_get_xcomshared handler inrequest_handlers.pyGetXCommessages inCallbackSubprocess._handle_requestOnly read access (GetXCom) is exposed. SetXCom and DeleteXCom remain out of
scope for callbacks since they should not be producing XCom values.
related: #65269
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.6) following the guidelines