新增删除逻辑

This commit is contained in:
沈健
2024-08-12 10:21:46 +08:00
parent 3bb8da4722
commit a4fc57a52a
+4 -2
View File
@@ -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}}',