From 72fcacd73fd06d28efb5a6cdef3f120214a65d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Tue, 21 Jan 2025 15:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/office/dag_rent.py | 5 +++-- dags/office/rent/{RegionPrice.py => price.py} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename dags/office/rent/{RegionPrice.py => price.py} (100%) diff --git a/dags/office/dag_rent.py b/dags/office/dag_rent.py index 2be459c..6687cee 100644 --- a/dags/office/dag_rent.py +++ b/dags/office/dag_rent.py @@ -12,11 +12,12 @@ with DAG( # 每月25日1点运行 schedule_interval="0 1 25 * *", start_date=pendulum.datetime(2024, 7, 17, tz="Asia/Shanghai"), - catchup=True + catchup=True, + description="写字楼租金城市区域均价价格计算" ) as dag: t1 = BashOperator( task_id='rent', - bash_command='python /opt/airflow/dags/repo/dags/office/rent/RegionPrice.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ', + bash_command='python /opt/airflow/dags/repo/dags/office/rent/price.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ', ) t1 diff --git a/dags/office/rent/RegionPrice.py b/dags/office/rent/price.py similarity index 100% rename from dags/office/rent/RegionPrice.py rename to dags/office/rent/price.py