-
|
I need to exchange some data/metadata between airflow operators in DAG. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
In order to get more variables in the context you should make sure you use the same Python Version as your airflow and install Airflow in the external env. Then your context will contain more of the variables (not task_instance) but at least dag_run that should give you all that you need to run xcom_pull/push: This is explained in the Docs of the EPO |
Beta Was this translation helpful? Give feedback.
-
|
@potiuk Thank you, dag_run variable from context really helped! |
Beta Was this translation helpful? Give feedback.
-
|
For somebody, who will meet the same problem. Then use |
Beta Was this translation helpful? Give feedback.
In order to get more variables in the context you should make sure you use the same Python Version as your airflow and install Airflow in the external env. Then your context will contain more of the variables (not task_instance) but at least dag_run that should give you all that you need to run xcom_pull/push:
This is explained in the Docs of the EPO