from airflow.operators.bash import BashOperator import pendulum from airflow import DAG with DAG( "price_rate_dag", # 每月2日6点整分运行 schedule_interval="0 6 2 * *", start_date=pendulum.datetime(2022, 7, 20, tz="Asia/Shanghai"), catchup=True, ) as dag: t1 = BashOperator( task_id='price_rate', bash_command='python /opt/airflow/dags/repo/dags/business/business/price_rate.py', ) t1