新增小区基本属性同步

This commit is contained in:
Jian Shen
2022-10-12 15:49:28 +08:00
parent 1049b28a86
commit c6d34fe9cc
5 changed files with 143 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
"community_summary_dag",
# 每月2日1点整分运行
schedule_interval="0 1 2 * *",
start_date=pendulum.datetime(2022, 10, 12, tz="Asia/Shanghai"),
catchup=True,
description="地址输出信息分类数据定时更新"
) as dag:
t1 = BashOperator(
task_id='community_summary_dag',
bash_command='python /opt/airflow/dags/repo/dags/business/business/community_summary.py {{dag_run.conf["type"] if "type" in dag_run.conf}}',
)
t1