""" 小区周边配套DAG """ from airflow.operators.bash import BashOperator import pendulum from airflow import DAG with DAG( dag_id="office_rent_dag", # 每月25日1点运行 schedule_interval="0 1 25 * *", start_date=pendulum.datetime(2024, 12, 25, tz="Asia/Shanghai"), catchup=True, description="写字楼租金城市区域均价价格计算" ) as dag: t1 = BashOperator( task_id='office_rent', bash_command='python /opt/airflow/dags/repo/dags/office/rent/price.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ', ) t1