新增周边交通入库

This commit is contained in:
Jian Shen
2022-06-18 15:44:51 +08:00
parent 56a92bb6c6
commit 5195196fe9
3 changed files with 126 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
"""
小区周边公交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