jroachgolf84 commented on issue #62988:
URL: https://github.com/apache/airflow/issues/62988#issuecomment-4016738077

   So, a couple of things here. XComs are tied to a TaskInstance, not a DagRun. 
That is, having a snippet of code like the one below is ambiguous, as there are 
multiple Tasks that an XCom could be written for.
   
   ```python
       t_trigger = TriggerDagRunOperator(
           task_id="trigger_child",
           trigger_dag_id="child_dag",
           wait_for_completion=True
       )
       postprocess(t_trigger)
   ```
   
   Also, there is a `run_id` parameter that can be passed to `xcom_pull` (see 
the code here: 
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/models/taskinstance.py#L1671-L1699).
 I think a docs improvement might be applicable here, but IMO, the 
functionality is already in-place.


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