17 lines
485 B
Python
17 lines
485 B
Python
from airflow import DAG
|
|
from airflow.operators.bash import BashOperator
|
|
import pendulum
|
|
|
|
with DAG(
|
|
dag_id="ai_nonghang_use_dag",
|
|
# 每天9:40
|
|
schedule_interval="40 9 * * 1-5",
|
|
start_date=pendulum.datetime(2025, 2, 13, tz="Asia/Shanghai"),
|
|
description="AI估价农行使用情况",
|
|
catchup=True
|
|
) as dag:
|
|
t1 = BashOperator(
|
|
task_id='ai_nonghang_use',
|
|
bash_command='python /opt/airflow/dags/repo/dags/stat/aiprice/nonghang_use.py'
|
|
)
|
|
t1 |