新增AI
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from airflow.operators.bash import BashOperator
|
||||
import pendulum
|
||||
from airflow import DAG
|
||||
|
||||
with DAG(
|
||||
dag_id="ai_stock_dag",
|
||||
# 每天运行
|
||||
schedule_interval="20 9 * * *",
|
||||
start_date=pendulum.datetime(2025, 4, 23, tz="Asia/Shanghai"),
|
||||
catchup=True
|
||||
) as dag:
|
||||
t1 = BashOperator(
|
||||
task_id='ai_stock',
|
||||
bash_command='python /opt/airflow/dags/repo/dags/ai/stock/dag_ai_stock.py',
|
||||
)
|
||||
t1
|
||||
Reference in New Issue
Block a user