23 lines
472 B
Python
23 lines
472 B
Python
"""
|
|
小区周边银行DAG
|
|
"""
|
|
from airflow.operators.bash import BashOperator
|
|
|
|
import pendulum
|
|
|
|
from airflow import DAG
|
|
|
|
with DAG(
|
|
"district_bank_dag",
|
|
# 每月1日1点运行
|
|
schedule_interval="0 1 1 * *",
|
|
start_date=pendulum.datetime(2022, 6, 18, tz="Asia/Shanghai"),
|
|
catchup=True,
|
|
) as dag:
|
|
t1 = BashOperator(
|
|
task_id='district_bank',
|
|
bash_command='python /opt/airflow/dags/repo/dags/poi/business/district_bank.py',
|
|
)
|
|
t1
|
|
|