25 lines
833 B
Python
25 lines
833 B
Python
# -*- 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
|
|
)
|