From 35cd52ad5c9a4894fc848a309a41e3bef24845f0 Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Fri, 5 Aug 2022 11:10:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/mt/mt_dag.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dags/mt/mt_dag.py b/dags/mt/mt_dag.py index 8aeb3f9..a910512 100644 --- a/dags/mt/mt_dag.py +++ b/dags/mt/mt_dag.py @@ -17,22 +17,22 @@ with DAG( ) as dag: t1 = BashOperator( task_id='mt_comm', - bash_command='python /opt/airflow/dags/repo/dags/mt/supply/comm.py {{ dag_run.conf["output_date"] }}', + bash_command='python /opt/airflow/dags/repo/dags/mt/supply/comm.py {{dag_run.conf["output_date"] if "output_date" in dag_run.conf}}', ) t2 = BashOperator( task_id='mt_rent_avg_price', - bash_command='python /opt/airflow/dags/repo/dags/mt/supply/rent_avg_price.py {{ dag_run.conf["output_date"] }}', + bash_command='python /opt/airflow/dags/repo/dags/mt/supply/rent_avg_price.py {{dag_run.conf["output_date"] if "output_date" in dag_run.conf}}', ) t3 = BashOperator( task_id='mt_facilitys', - bash_command='python /opt/airflow/dags/repo/dags/mt/supply/facilitys.py {{ dag_run.conf["output_date"] }}', + bash_command='python /opt/airflow/dags/repo/dags/mt/supply/facilitys.py {{dag_run.conf["output_date"] if "output_date" in dag_run.conf}}', ) t4 = BashOperator( task_id='mt_deal', - bash_command='python /opt/airflow/dags/repo/dags/mt/supply/deal.py {{ dag_run.conf["output_date"] }}', + bash_command='python /opt/airflow/dags/repo/dags/mt/supply/deal.py {{dag_run.conf["output_date"] if "output_date" in dag_run.conf}}', ) t5 = BashOperator( task_id='mt_stat', - bash_command='python /opt/airflow/dags/repo/dags/mt/supply/data_stat.py {{ dag_run.conf["output_date"] }}', + bash_command='python /opt/airflow/dags/repo/dags/mt/supply/data_stat.py {{dag_run.conf["output_date"] if "output_date" in dag_run.conf}}', ) t1 >> t2 >> t3 >> t4 >> t5