meltano / files-airflow

MIT License
0 stars 5 forks source link

fix BashOperator import for airflow v2 dag - [merged] #14

Closed MeltyBot closed 2 years ago

MeltyBot commented 3 years ago

Merges master -> master

Migrated from GitLab: https://gitlab.com/meltano/files-airflow/-/merge_requests/7


Airflow v2 has renamed and removed the airflow.operators.bash_operator module in favor of airflow.operators.bash. This causes existing Meltano Airflow DAGs to raise an exception:

Broken DAG: [/home/ubuntu/meltano/orchestrate/dags/meltano.py] No module named 'airflow.operators.bash_operator'

This merge request uses the new bash operator module name. All else remains the same.

@see https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/operators/bash_operator/index.html