Here my code for retrieve a string pushed via xcom:
```
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 6, 1)
}
dag = DAG('xcom-test', default_args=default_args, schedule_interval=timedelta(1))
push = BashOperator(
task_id='push',
bash_command="echo value",
xcom_push=True,
dag=dag)
pull = BashOperator(
task_id='pull',
bash_command="echo {{ params.task.xcom_pull(task_ids='push') }}",
params={'task': push},
xcom_push=True,
dag=dag)
pull.set_upstream(push)
```
pull task should display "value" as output.
It does not work, since xcom_pull call on BashOperator needs a context argument.
I do not find any clues on how this context argument is retrieved, and its type, etc.
Any idea on this ?
Hao