From a4fc57a52a088b938955b1a12410492a3f9ff612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Mon, 12 Aug 2024 10:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A0=E9=99=A4=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/dag_community_summary.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dags/business/dag_community_summary.py b/dags/business/dag_community_summary.py index aaa97ef..d3216fc 100644 --- a/dags/business/dag_community_summary.py +++ b/dags/business/dag_community_summary.py @@ -2,8 +2,6 @@ from airflow.operators.bash import BashOperator import pendulum from airflow import DAG -from dags.business.business.community import del_comm - with DAG( dag_id="community_summary_dag", # 每月2日1点整分运行 @@ -12,6 +10,10 @@ with DAG( catchup=True, description="地址输出信息分类数据定时更新" ) as dag: + del_comm = BashOperator( + task_id='del_comm', + bash_command='python /opt/airflow/dags/repo/dags/business/business/community/del_comm.py {{dag_run.conf["city"] if "city" in dag_run.conf}}', + ) comm = BashOperator( task_id='comm', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/comm.py {{dag_run.conf["city"] if "city" in dag_run.conf}}',