uranusjr commented on code in PR #25604:
URL: https://github.com/apache/airflow/pull/25604#discussion_r953103474
##########
airflow/example_dags/example_xcom.py:
##########
@@ -79,8 +79,8 @@ def pull_value_from_bash_push(ti=None):
bash_pull = BashOperator(
task_id='bash_pull',
bash_command='echo "bash pull demo" && '
- f'echo "The xcom pushed manually is
{bash_push.output["manually_pushed_value"]}" && '
- f'echo "The returned_value xcom is {bash_push.output}" && '
+ f'echo "The xcom pushed manually is {XComArg(bash_push,
key="manually_pushed_value")}" && '
+ f'echo "The returned_value xcom is {XComArg(bash_push)}" && '
Review Comment:
The latter one can still use `output` although using `XComArg` for both is
probably more consistent…?
--
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]