Files
airflow/dags/poi/district_bus_dag.py
T
2022-06-18 15:46:12 +08:00

22 lines
441 B
Python

"""
小区周边公交DAG
"""
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
"district_bus_dag",
schedule_interval="@monthly",
start_date=pendulum.datetime(2022, 6, 20, tz="Asia/Shanghai"),
catchup=True,
) as dag:
t1 = BashOperator(
task_id='district_bus',
bash_command='python /opt/airflow/dags/repo/dags/poi/business/district_bus.py',
)
t1