From 5f651cb4b6f08c8574ec22aacd09b46598284872 Mon Sep 17 00:00:00 2001
From: daihw <928874202@qq.com>
Date: Fri, 15 Apr 2022 16:37:21 +0800
Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=8A=82?=
=?UTF-8?q?=E7=82=B9=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5=E5=A4=84=E7=90=86?=
=?UTF-8?q?=E6=96=B9=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
guide/flow-dsl.md | 23 +++++++++++++++++++++++
guide/pipeline-dsl.md | 19 +++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/guide/flow-dsl.md b/guide/flow-dsl.md
index 042fd8e..71cea3e 100644
--- a/guide/flow-dsl.md
+++ b/guide/flow-dsl.md
@@ -86,6 +86,29 @@ workflow:
当存在多个上游节点时,当前节点会等待上游节点全部执行成功后才开始执行
+### 节点执行失败处理方式
+在节点声明中,增加了`on-failure`字段,用于配置节点执行失败后的处理方式
+> 版本说明:`v2.3.0`开始支持
+
+语法:
+```
+# 默认值,表示当前节点执行失败时,自动挂起,等待手动处理(重试/忽略)当前节点
+on-failure: suspend
+# 表示当前节点执行失败时,自动忽略,继续执行下游节点
+on-failure: ignore
+```
+
+引用示例:
+```
+ git_clone:
+ on-failure: suspend | ignore
+ type: git_clone:1.2.0
+ sources:
+ - start
+ targets:
+ - end
+```
+
### 节点参数
不同的节点类型定义了不同的参数,节点类型预先定义了`输入参数`和`输出参数`的名称、类型与默认值
diff --git a/guide/pipeline-dsl.md b/guide/pipeline-dsl.md
index e55d768..1377ddf 100644
--- a/guide/pipeline-dsl.md
+++ b/guide/pipeline-dsl.md
@@ -72,6 +72,25 @@ pipeline:
hub_api_sk: ((xxx.xxx))
```
+### 节点执行失败处理方式
+在节点声明中,增加了`on-failure`字段,用于配置节点执行失败后的处理方式
+> 版本说明:`v2.3.0`开始支持
+
+语法:
+```
+# 默认值,表示当前节点执行失败时,自动挂起,等待手动处理(重试/忽略)当前节点
+on-failure: suspend
+# 表示当前节点执行失败时,自动忽略,继续执行下游节点
+on-failure: ignore
+```
+
+引用示例:
+```
+ git_clone:
+ on-failure: suspend | ignore
+ type: git_clone:1.2.0
+```
+
### 节点参数
不同的节点类型定义了不同的参数,节点类型预先定义了`输入参数`和`输出参数`的名称、类型与默认值
--
Gitee
From 67269d1e27bfbcdf33564cedcb8be16e72c76cbb Mon Sep 17 00:00:00 2001
From: daihw <928874202@qq.com>
Date: Fri, 15 Apr 2022 16:38:19 +0800
Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=86=85?=
=?UTF-8?q?=E7=BD=AE=E8=BE=93=E5=85=A5=E5=8F=82=E6=95=B0=20JM=5FTRIGGER=5F?=
=?UTF-8?q?ID?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
guide/custom-node.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guide/custom-node.md b/guide/custom-node.md
index 87906d1..2d643d3 100644
--- a/guide/custom-node.md
+++ b/guide/custom-node.md
@@ -189,6 +189,7 @@ pipeline:
| 关键字 | 说明 |
| -------------------------------- | ---------------------------------------------------------------------------------------------- |
| share_dir | 共享目录,容器中可通过 JM_SHARE_DIR 使用 |
+| trigger_id | 触发器ID,容器中可通过 JM_TRIGGER_ID 使用,`v2.3.0`版本开始支持 |
### 4. 内置输出参数
@@ -199,5 +200,6 @@ pipeline:
| inner.execution_status | 节点任务执行状态,可在下游节点通过`${xxx.inner.execution_status}`调用,取值范围为:
EXECUTION_SUCCEEDED: 执行成功
EXECUTION_FAILED: 执行失败
DISPATCH_FAILED: 分发失败 |
| inner.start_time | 节点任务开始时间,可在下游节点通过`${xxx.inner.start_time}`调用 |
| inner.end_time | 节点任务结束时间,可在下游节点通过`${xxx.inner.end_time}`调用 |
+| inner.end_time | 节点任务结束时间,可在下游节点通过`${xxx.inner.end_time}`调用 |
--
Gitee
From cc4438e8e900e5fef75e5d8cb5433ec2eb8e151f Mon Sep 17 00:00:00 2001
From: daihw <928874202@qq.com>
Date: Fri, 15 Apr 2022 16:39:16 +0800
Subject: [PATCH 3/3] refactor: custom-node.md
---
guide/custom-node.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/guide/custom-node.md b/guide/custom-node.md
index 2d643d3..b69d45d 100644
--- a/guide/custom-node.md
+++ b/guide/custom-node.md
@@ -200,6 +200,5 @@ pipeline:
| inner.execution_status | 节点任务执行状态,可在下游节点通过`${xxx.inner.execution_status}`调用,取值范围为:
EXECUTION_SUCCEEDED: 执行成功
EXECUTION_FAILED: 执行失败
DISPATCH_FAILED: 分发失败 |
| inner.start_time | 节点任务开始时间,可在下游节点通过`${xxx.inner.start_time}`调用 |
| inner.end_time | 节点任务结束时间,可在下游节点通过`${xxx.inner.end_time}`调用 |
-| inner.end_time | 节点任务结束时间,可在下游节点通过`${xxx.inner.end_time}`调用 |
--
Gitee