18 lines
550 B
Python
18 lines
550 B
Python
from airflow.operators.bash import BashOperator
|
|
import pendulum
|
|
from airflow import DAG
|
|
|
|
with DAG(
|
|
dag_id="increase_decrease_city_region_dag",
|
|
# 每月的最后一天运行
|
|
schedule_interval="0 10 L * *",
|
|
start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"),
|
|
description="常用字段覆盖率统计",
|
|
catchup=True
|
|
) as dag:
|
|
t1 = BashOperator(
|
|
task_id='increase_decrease_city_region',
|
|
bash_command='python /opt/airflow/dags/repo/dags/stat/cityPrice/increase_decrease_city_region.py',
|
|
)
|
|
t1
|