From d4c543432408b1b1b781dd877cddd9c09194c0de Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 13 Jul 2026 18:12:22 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20workflow=20=E6=A0=BC=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E4=B8=BA=20DAG=20(nodes/depends=5Fon/${{inputs}})?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- suite-developer/TOOLS.md | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/suite-developer/TOOLS.md b/suite-developer/TOOLS.md index 9628464..c2c6e6b 100644 --- a/suite-developer/TOOLS.md +++ b/suite-developer/TOOLS.md @@ -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}}` 语法引用。 ## 基础镜像