feat(poi): 添加县政府所在乡镇街道核验排查脚本及月度定时任务

This commit is contained in:
王文艳
2026-09-16 09:36:13 +08:00
parent 5711fb84a8
commit 9134b28713
2 changed files with 238 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
"""
县政府所在乡镇街道核验排查定时任务
每月1日9点运行,比对 ES administrative_mapping_45 索引中县政府所在街道与高德逆地理街道并发送审核邮件
"""
from airflow import DAG
from airflow.operators.python import PythonOperator
import pendulum
from poi.business.check_gov_township_diff import check_gov_township_diff
with DAG(
dag_id="check_gov_township_diff_dag",
# 每月1日9点运行
schedule="0 9 1 * *",
start_date=pendulum.datetime(2024, 1, 1, tz="Asia/Shanghai"),
catchup=False,
description="县政府所在乡镇街道核验排查(每月1日9点)",
tags=["poi", "gov", "audit"]
) as dag:
check_task = PythonOperator(
task_id="check_gov_township_diff_task",
python_callable=check_gov_township_diff
)