新增周边教育

This commit is contained in:
Jian Shen
2022-06-20 09:55:11 +08:00
parent e381b71da1
commit 4da63ac0c9
2 changed files with 127 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
"""
小区周边银行DAG
"""
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
"district_school_dag",
# 每月2日9点运行
schedule_interval="0 9 2 * *",
start_date=pendulum.datetime(2022, 6, 20, tz="Asia/Shanghai"),
catchup=True,
) as dag:
t1 = BashOperator(
task_id='district_school',
bash_command='python /opt/airflow/dags/repo/dags/poi/business/district_school.py',
)
t1