添加API启动支持

This commit is contained in:
2025-11-12 21:58:47 +08:00
parent 2e49c448d4
commit 94f509725a
2 changed files with 30 additions and 26 deletions
+4 -3
View File
@@ -5,9 +5,10 @@ from airflow import DAG
with DAG(
dag_id="ai_stock_dag",
# 每天运行
schedule_interval="20 9 * * 1-5",
start_date=pendulum.datetime(2025, 4, 23, tz="Asia/Shanghai"),
catchup=True
schedule_interval="30 8 * * 1-5",
start_date=pendulum.datetime(2025, 11, 10, tz="Asia/Shanghai"),
catchup=True,
tags=["ai_stock"],
) as dag:
t1 = BashOperator(
task_id='ai_stock',