docs: workflow 格式修正为 DAG (nodes/depends_on/${{inputs}})

This commit is contained in:
Ubuntu
2026-07-13 18:12:22 +08:00
parent 2dca7cf5a5
commit d4c5434324
+19 -11
View File
@@ -99,23 +99,31 @@ author: 作者
tags: [标签1, 标签2]
params:
type: object
required:
- input_path
properties:
input_path:
type: string
description: 输入文件路径
input_path:
type: string
required: true
desc: 输入文件路径
nodes:
- id: start
type: start
steps:
- id: step1
name: 步骤名称
script: run
type: python
script_id: run
depends_on:
- start
params:
input: $params.input_path
input: "${{inputs.input_path}}"
- id: end
type: end
depends_on:
- step1
```
> **注意**:使用 `script: run`(不是 `script_id`,不是 `script: run.py`),参数用 `$params.xxx`(不是 `${{inputs.xxx}}`
> **工作流格式**:使用 `nodes` 定义 DAG,每个节点通过 `depends_on` 指定前驱节点。必须有 `start` 和 `end` 类型节点作为起止。参数用 `${{inputs.xxx}}` 语法引用
## 基础镜像