From airflow DAG can I pass variable values as arguments to the python script using op_args or op_kwargs. In my airflow, Dag is importing my script as from scripts import my_script my python operator looks like this
PythonOperator(
task_id='xxxxxx',
python_callable=my_script.main,
op_args=[bucket_name, prefix, source_blob_name, dest_bucket_name],
dag=dag,
trigger_rule='all_success'
)
I declared my variables in Airflow. I could be able to call my values bucket_name=Variable.get('bucket_name') here I want pass the value of bucket_name to my variable in Python script is that possible to do so?