From 6289e30cfee6169b7246dce0e81b4086626448c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Wed, 24 Dec 2025 10:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=82=A1=E7=A5=A8=E8=A1=A8?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/ai/dag_ai_stock.py | 8 +++++++- dags/ai/stock/{stock_new.py => stock_strategy.py} | 0 2 files changed, 7 insertions(+), 1 deletion(-) rename dags/ai/stock/{stock_new.py => stock_strategy.py} (100%) diff --git a/dags/ai/dag_ai_stock.py b/dags/ai/dag_ai_stock.py index 636c1c5..dd128a6 100644 --- a/dags/ai/dag_ai_stock.py +++ b/dags/ai/dag_ai_stock.py @@ -10,8 +10,14 @@ with DAG( catchup=True, tags=["ai_stock"], ) as dag: + t1 = BashOperator( + task_id='stock_strategy', + bash_command='python /opt/airflow/dags/repo/dags/ai/stock/stock_strategy.py', + ) + + t2 = BashOperator( task_id='ai_stock', bash_command='python /opt/airflow/dags/repo/dags/ai/stock/stock.py', ) - t1 + t1 >> t2 \ No newline at end of file diff --git a/dags/ai/stock/stock_new.py b/dags/ai/stock/stock_strategy.py similarity index 100% rename from dags/ai/stock/stock_new.py rename to dags/ai/stock/stock_strategy.py