版本修改
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from airflow import DAG
|
||||
from airflow.operators.bash import BashOperator
|
||||
import pendulum
|
||||
|
||||
with DAG(
|
||||
dag_id="ai_nonghang_use_dag",
|
||||
# 每天9:40
|
||||
schedule="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
|
||||
Reference in New Issue
Block a user