You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/20 04:33:23 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #17749: Example xcom update

uranusjr commented on a change in pull request #17749:
URL: https://github.com/apache/airflow/pull/17749#discussion_r692651846



##########
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:
       ```suggestion
                        'echo "Manually set xcom value {{ ti.xcom_push(key="manually_pushed_value", value="value_pushed_manually") }}" && '
   ```
   
   (And change the key in `xcom_pull`)




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org