In order to run Python scripts inside virtualenv when scheduled using Apache Airflow, the BashOperator is used.
For example,
task_a = BashOperator(
task_id='task_a',
bash_command='/path/to/virtualenv/bin/python /path/to/script_a.py'),
dag=dag)
task_b = BashOperator(
task_id='task_b',
bash_command='/path/to/virtualenv/bin/python /path/to/script_b.py'),
dag=dag)
In this case, how can we pass data between task_a and task_b, like how you could when using Xcom when the PythonOperator is used?