新增周边交通入库
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user