I am still fairly new to Airflow, and trying to figure out the logistics of passing arguments between tasks/dags. My question is - is it possible to pass arguments from a BranchPythonOperator task, into the task_id's that it calls.
ie:
@task
def task_a():
***print(a)***
return {}
def get_task_run(**kwargs):
a = 'Pass-Argument'
return 'task_a'
tasks = BranchPythonOperator(
task_id='get_task_run',
python_callable=get_task_run,
)
In the code above for example, is it possible to somehow get the variable 'a' inside the 'task_a' that is called from the BranchPythonOperator?