From 075577afd7888f61ce4d5d925e6115edcde3690e Mon Sep 17 00:00:00 2001 From: gallup Date: Fri, 6 Dec 2024 10:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/price_exponents/dag_region_price_month.py | 3 ++- dags/price_exponents/dag_seaweed_price_month.py | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dags/price_exponents/dag_region_price_month.py b/dags/price_exponents/dag_region_price_month.py index 3bfe233..5187db3 100644 --- a/dags/price_exponents/dag_region_price_month.py +++ b/dags/price_exponents/dag_region_price_month.py @@ -12,7 +12,8 @@ with DAG( # 每月1日1点运行 schedule_interval="0 1 1 * *", start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"), - catchup=True + catchup=True, + description="区域房价指数定时计算" ) as dag: t1 = BashOperator( task_id='region_price_month', diff --git a/dags/price_exponents/dag_seaweed_price_month.py b/dags/price_exponents/dag_seaweed_price_month.py index eddc238..db3782e 100644 --- a/dags/price_exponents/dag_seaweed_price_month.py +++ b/dags/price_exponents/dag_seaweed_price_month.py @@ -8,15 +8,16 @@ import pendulum from airflow import DAG with DAG( - dag_id="region_price_month_dag", + dag_id="seaweed_price_month_dag", # 每月1日1点运行 schedule_interval="0 1 1 * *", start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"), - catchup=True + catchup=True, + description="小区房价指数定时计算" ) as dag: t1 = BashOperator( - task_id='region_price_month', - bash_command='python /opt/airflow/dags/repo/dags/price_exponents/region_price_month.py ', + task_id='seaweed_price_month', + bash_command='python /opt/airflow/dags/repo/dags/price_exponents/seaweed_price_month.py ', ) t1