You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pass "real" TaskInstance object with xcom methods in context to task execute functions #44481
(We currently pass task_isntance, not ti, but even passing it as ti wouldn't work as the simple class we have for TI in TaskSDK doesn't have xcom_pull or xcom_push methods.
Activity
kaxil commentedon Dec 10, 2024
The current values in the Context dict:
airflow/airflow/models/taskinstance.py
Lines 1009 to 1048 in b3f3649
The plan is to:
key:valuepairs from the API Server and pass it as a response to start the request to the API server (withTIEnterRunningPayload)key:valuepairs from the Task Execution Interface (execution side of the Task SDK)As a goal: I am planning to get as much info as possible on the Execution side itself as opposed to getting it from the API server
kaxil commentedon Dec 11, 2024
WIP branch: https://github.com/apache/airflow/compare/main...astronomer:airflow:task-context?expand=1
AIP-72: Add some basic Task Context keys (#44894)
AIP-72: Pass context keys from API Server to Workers
AIP-72: Pass context keys from API Server to Workers
AIP-72: Pass context keys from API Server to Workers
AIP-72: Add some basic Task Context keys (apache#44894)
70 remaining items
AIP-72: Fix recursion bug with `XComArg` (#45112)
AIP-72: Allow pushing and pulling XCom from Task Context (#45075)
AIP-72: Add Taskflow API support & template rendering in Task SDK (#4…
AIP-72: Add some basic Task Context keys (#44894)
AIP-72: Pass context keys from API Server to Workers (#44899)
AIP-72: Allow retrieving Connection from Task Context (#45043)
AIP-72: Fix recursion bug with `XComArg` (#45112)
AIP-72: Allow pushing and pulling XCom from Task Context (#45075)
AIP-72: Add Taskflow API support & template rendering in Task SDK (#4…
AIP-72: Add some basic Task Context keys (#44894)
AIP-72: Pass context keys from API Server to Workers (#44899)
AIP-72: Allow retrieving Connection from Task Context (#45043)
AIP-72: Fix recursion bug with `XComArg` (#45112)
AIP-72: Allow pushing and pulling XCom from Task Context (#45075)
AIP-72: Add Taskflow API support & template rendering in Task SDK (#4…