From 989ff7a466c4df9a5d07dcc46468396d6afdf5f1 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Thu, 9 Feb 2023 13:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAyear=5Fmonth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/jh/price_exception_dag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dags/jh/price_exception_dag.py b/dags/jh/price_exception_dag.py index 5f2f3af..5e22e0c 100644 --- a/dags/jh/price_exception_dag.py +++ b/dags/jh/price_exception_dag.py @@ -8,7 +8,7 @@ with DAG( schedule_interval="0 10 23 * *", start_date=pendulum.datetime(2022, 8, 23, tz="Asia/Shanghai"), catchup=True, - description="建行每月价格异常检测脚本,默认检测本月与上月差异, 若对比上月与前月价格,设置type=\"202210\"(前月日期即可) 若输出样本存在与否,设置type=sample" + description="建行每月价格异常检测脚本,默认检测本月与上月差异, 若对比上月与前月价格,设置year_month=\"202210\"(前月日期即可) 若输出样本存在与否,设置year_month=sample" ) as dag: t1 = BashOperator( task_id='price_evaluation', @@ -16,7 +16,7 @@ with DAG( ) t2 = BashOperator( task_id='price_exception', - bash_command='python /opt/airflow/dags/repo/dags/jh/price/price_exception.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', + bash_command='python /opt/airflow/dags/repo/dags/jh/price/price_exception.py {{dag_run.conf["year_month"] if "year_month" in dag_run.conf}}', )