LionelZhao28 commented on a change in pull request #17749:
URL: https://github.com/apache/airflow/pull/17749#discussion_r692717254
##########
File path: airflow/example_dags/example_xcom.py
##########
@@ -81,3 +83,20 @@ def puller(**kwargs):
)
pull << [push1, push2]
+
+ bash_push = BashOperator(
+ task_id='bash_push',
+ bash_command='echo "bash_push demo" && '
+ 'echo "Manually set xcom value
{{ti.xcom_push(key="xcom_pushed_value", value="value_by_push_manually") }}" && '
Review comment:
I've changed the key and commit the changes.
> I think this DAG should also demostrate how to (say) push from Bash and
pull in Python.
Good idea. I added a new task to show how to this.
##########
File path: airflow/example_dags/example_xcom.py
##########
@@ -81,3 +83,20 @@ def puller(**kwargs):
)
pull << [push1, push2]
+
+ bash_push = BashOperator(
+ task_id='bash_push',
+ bash_command='echo "bash_push demo" && '
+ 'echo "Manually set xcom value
{{ti.xcom_push(key="xcom_pushed_value", value="value_by_push_manually") }}" && '
Review comment:
I've changed the key and commit the changes.
> I think this DAG should also demostrate how to (say) push from Bash and
pull in Python.
Good idea. I added a new task to show this.
--
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]