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}}',