This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 1b43f96 Automated deployment: b8851e0e85a8c571774047da154c827250d7fa70
1b43f96 is described below
commit 1b43f966570bbc57511018fce084107da3775186
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Mar 14 14:37:10 2022 +0000
Automated deployment: b8851e0e85a8c571774047da154c827250d7fa70
---
.../docs/dev/user_doc/guide/task/sub-process.html | 37 +++++++++++++------
.../docs/dev/user_doc/guide/task/sub-process.json | 2 +-
img/tasks/demo/subprocess_task01.png | Bin 0 -> 133613 bytes
img/tasks/demo/subprocess_task02.png | Bin 0 -> 180555 bytes
img/tasks/demo/subprocess_task03.png | Bin 0 -> 139031 bytes
img/tasks/icons/sub_process.png | Bin 0 -> 692 bytes
.../docs/dev/user_doc/guide/task/sub-process.html | 41 +++++++++++++++------
.../docs/dev/user_doc/guide/task/sub-process.json | 2 +-
8 files changed, 58 insertions(+), 24 deletions(-)
diff --git a/en-us/docs/dev/user_doc/guide/task/sub-process.html
b/en-us/docs/dev/user_doc/guide/task/sub-process.html
index 4d76a57..e70e9a0 100644
--- a/en-us/docs/dev/user_doc/guide/task/sub-process.html
+++ b/en-us/docs/dev/user_doc/guide/task/sub-process.html
@@ -11,22 +11,37 @@
</head>
<body>
<div id="root"><div class="md2html docs-page" data-reactroot=""><header
class="header-container header-container-dark"><div class="header-body"><span
class="mobile-menu-btn mobile-menu-btn-dark"></span><a
href="/en-us/index.html"><img class="logo" src="/img/hlogo_white.svg"/></a><div
class="search search-dark"><span class="icon-search"></span></div><span
class="language-switch language-switch-dark">中</span><div
class="header-menu"><div><ul class="ant-menu whiteClass ant-menu-light ant-
[...]
+<h2>Overview</h2>
+<p>The sub-process node is to execute a certain external workflow definition
as a task node.</p>
+<h2>Create Task</h2>
<ul>
-<li>The sub-process node is to execute a certain external workflow definition
as a task node.</li>
+<li>Click Project Management-Project Name-Workflow Definition, and click the
"Create Workflow" button to enter the DAG editing page.</li>
+<li>Drag <img src="/img/tasks/icons/sub_process.png" width="15"/> from the
toolbar to the drawing board.</li>
</ul>
-<blockquote>
-<p>Drag the <img
src="https://analysys.github.io/easyscheduler_docs_cn/images/toolbar_SUB_PROCESS.png"
alt="PNG"> task node in the toolbar to the drawing board, as shown in the
following figure:</p>
-</blockquote>
-<p align="center">
- <img src="/img/sub-process-en.png" width="80%" />
- </p>
+<h2>Task Parameter</h2>
<ul>
-<li>Node name: The node name in a workflow definition is unique</li>
-<li>Run flag: identify whether this node can be scheduled normally</li>
-<li>Descriptive information: describe the function of the node</li>
+<li>Node name: The node name in a workflow definition is unique.</li>
+<li>Run flag: Identifies whether this node can be scheduled normally, if it
does not need to be executed, you can turn on the prohibition switch.</li>
+<li>Descriptive information: describe the function of the node.</li>
+<li>Task priority: When the number of worker threads is insufficient, they are
executed in order from high to low, and when the priority is the same, they are
executed according to the first-in first-out principle.</li>
+<li>Worker grouping: Tasks are assigned to the machines of the worker group to
execute. If Default is selected, a worker machine will be randomly selected for
execution.</li>
+<li>Environment Name: Configure the environment name in which to run the
script.</li>
<li>Timeout alarm: Check the timeout alarm and timeout failure. When the task
exceeds the "timeout period", an alarm email will be sent and the
task execution will fail.</li>
-<li>Sub-node: It is the workflow definition of the selected sub-process. Enter
the sub-node in the upper right corner to jump to the workflow definition of
the selected sub-process</li>
+<li>Sub-node: It is the workflow definition of the selected sub-process. Enter
the sub-node in the upper right corner to jump to the workflow definition of
the selected sub-process.</li>
+<li>Predecessor task: Selecting a predecessor task for the current task will
set the selected predecessor task as upstream of the current task.</li>
</ul>
+<h2>Task Example</h2>
+<p>This example simulates a common task type, here we use a child node task to
recall the <a href="shell.md">Shell</a> to print out "hello world".
This means that a shell task is executed as a child node.</p>
+<h3>Create Shell task</h3>
+<p>Create a shell task to print "hello". And define the workflow for
this as test_dag01.</p>
+<p><img src="/img/tasks/demo/subprocess_task01.png"
alt="subprocess_task01"></p>
+<h2>Create Sub_process task</h2>
+<p>To use the sub_process, you need to create the sub-node task, which is the
shell task we created in the first step. Then, as shown in the diagram below,
select the corresponding sub-node in the ⑤ position.</p>
+<p><img src="/img/tasks/demo/subprocess_task02.png"
alt="subprocess_task02"></p>
+<p>After creating the sub_process is complete, create a corresponding shell
task for printing "world" and link the two together.Save the current
workflow and run it to get the desired result.</p>
+<p><img src="/img/tasks/demo/subprocess_task03.png"
alt="subprocess_task03"></p>
+<h2>Notice</h2>
+<p>When using sub_process to recall a sub-node task, you need to ensure that
the defined sub-node is online, otherwise the sub_process workflow will not
work properly.</p>
</div></section><footer class="footer-container"><div
class="footer-body"><div><h3>About us</h3><h4>Do you need feedback? Please
contact us through the following ways.</h4></div><div
class="contact-container"><ul><li><a
href="/en-us/community/development/subscribe.html"><img class="img-base"
src="/img/emailgray.png"/><img class="img-change"
src="/img/emailblue.png"/><p>Email List</p></a></li><li><a
href="https://twitter.com/dolphinschedule"><img class="img-base"
src="/img/twittergray.png [...]
<script
src="//cdn.jsdelivr.net/npm/[email protected]/dist/react-with-addons.min.js"></script>
<script
src="//cdn.jsdelivr.net/npm/[email protected]/dist/react-dom.min.js"></script>
diff --git a/en-us/docs/dev/user_doc/guide/task/sub-process.json
b/en-us/docs/dev/user_doc/guide/task/sub-process.json
index 9ccd6cd..3c21286 100644
--- a/en-us/docs/dev/user_doc/guide/task/sub-process.json
+++ b/en-us/docs/dev/user_doc/guide/task/sub-process.json
@@ -1,6 +1,6 @@
{
"filename": "sub-process.md",
- "__html": "<h1>SubProcess</h1>\n<ul>\n<li>The sub-process node is to execute
a certain external workflow definition as a task
node.</li>\n</ul>\n<blockquote>\n<p>Drag the <img
src=\"https://analysys.github.io/easyscheduler_docs_cn/images/toolbar_SUB_PROCESS.png\"
alt=\"PNG\"> task node in the toolbar to the drawing board, as shown in the
following figure:</p>\n</blockquote>\n<p align=\"center\">\n <img
src=\"/img/sub-process-en.png\" width=\"80%\" />\n </p>\n<ul>\n<li>Node name:
The [...]
+ "__html": "<h1>SubProcess</h1>\n<h2>Overview</h2>\n<p>The sub-process node
is to execute a certain external workflow definition as a task
node.</p>\n<h2>Create Task</h2>\n<ul>\n<li>Click Project Management-Project
Name-Workflow Definition, and click the "Create Workflow" button to
enter the DAG editing page.</li>\n<li>Drag <img
src=\"/img/tasks/icons/sub_process.png\" width=\"15\"/> from the toolbar to the
drawing board.</li>\n</ul>\n<h2>Task Parameter</h2>\n<ul>\n<li>Node na [...]
"link": "/dist/en-us/docs/dev/user_doc/guide/task/sub-process.html",
"meta": {}
}
\ No newline at end of file
diff --git a/img/tasks/demo/subprocess_task01.png
b/img/tasks/demo/subprocess_task01.png
new file mode 100644
index 0000000..518620a
Binary files /dev/null and b/img/tasks/demo/subprocess_task01.png differ
diff --git a/img/tasks/demo/subprocess_task02.png
b/img/tasks/demo/subprocess_task02.png
new file mode 100644
index 0000000..e80f9af
Binary files /dev/null and b/img/tasks/demo/subprocess_task02.png differ
diff --git a/img/tasks/demo/subprocess_task03.png
b/img/tasks/demo/subprocess_task03.png
new file mode 100644
index 0000000..636cbb6
Binary files /dev/null and b/img/tasks/demo/subprocess_task03.png differ
diff --git a/img/tasks/icons/sub_process.png b/img/tasks/icons/sub_process.png
new file mode 100644
index 0000000..fb12061
Binary files /dev/null and b/img/tasks/icons/sub_process.png differ
diff --git a/zh-cn/docs/dev/user_doc/guide/task/sub-process.html
b/zh-cn/docs/dev/user_doc/guide/task/sub-process.html
index 91bb64b..821b798 100644
--- a/zh-cn/docs/dev/user_doc/guide/task/sub-process.html
+++ b/zh-cn/docs/dev/user_doc/guide/task/sub-process.html
@@ -11,22 +11,41 @@
</head>
<body>
<div id="root"><div class="md2html docs-page" data-reactroot=""><header
class="header-container header-container-dark"><div class="header-body"><span
class="mobile-menu-btn mobile-menu-btn-dark"></span><a
href="/zh-cn/index.html"><img class="logo" src="/img/hlogo_white.svg"/></a><div
class="search search-dark"><span class="icon-search"></span></div><span
class="language-switch language-switch-dark">En</span><div
class="header-menu"><div><ul class="ant-menu whiteClass ant-menu-light ant [...]
+<h2>综述</h2>
+<p>子流程节点,就是把外部的某个工作流定义当做一个节点去执行。</p>
+<h2>创建任务</h2>
<ul>
-<li>子流程节点,就是把外部的某个工作流定义当做一个任务节点去执行。</li>
+<li>
+<p>点击项目管理 -> 项目名称 -> 工作流定义,点击”创建工作流”按钮,进入 DAG 编辑页面:</p>
+</li>
+<li>
+<p>拖动工具栏的 <img src="/img/tasks/icons/sub_process.png" width="15"/>
任务节点到画板中。</p>
+</li>
</ul>
-<blockquote>
-<p>拖动工具栏中的<img
src="https://analysys.github.io/easyscheduler_docs_cn/images/toolbar_SUB_PROCESS.png"
alt="PNG">任务节点到画板中,如下图所示:</p>
-</blockquote>
-<p align="center">
- <img src="/img/subprocess_edit.png" width="80%" />
- </p>
+<h2>任务参数</h2>
<ul>
-<li>节点名称:一个工作流定义中的节点名称是唯一的</li>
-<li>运行标志:标识这个节点是否能正常调度</li>
-<li>描述信息:描述该节点的功能</li>
+<li>节点名称:设置任务的名称。一个工作流定义中的节点名称是唯一的。</li>
+<li>运行标志:标识这个节点是否能正常调度,如果不需要执行,可以打开禁止执行开关。</li>
+<li>描述:描述该节点的功能。</li>
+<li>任务优先级:worker 线程数不足时,根据优先级从高到低依次执行,优先级一样时根据先进先出原则执行。</li>
+<li>Worker 分组:任务分配给 worker 组的机器执行,选择 Default 会随机选择一台 worker 机执行。</li>
+<li>环境名称:配置运行脚本的环境。</li>
<li>超时告警:勾选超时告警、超时失败,当任务超过"超时时长"后,会发送告警邮件并且任务执行失败.</li>
-<li>子节点:是选择子流程的工作流定义,右上角进入该子节点可以跳转到所选子流程的工作流定义</li>
+<li>子节点:是选择子流程的工作流定义,右上角进入该子节点可以跳转到所选子流程的工作流定义。</li>
+<li>前置任务:选择当前任务的前置任务,会将被选择的前置任务设置为当前任务的上游。</li>
</ul>
+<h2>任务样例</h2>
+<p>该样例模拟了常见的任务类型,这里我们使用子结点任务调用 <a href="shell.md">Shell</a> 打印出 ”hello
world“。即将一个 shell 任务当作子结点来执行。</p>
+<h3>创建 shell 任务</h3>
+<p>创建一个 shell 任务,用于打印 “hello”。并为该工作流定义为 test_dag01。</p>
+<p><img src="/img/tasks/demo/subprocess_task01.png"
alt="subprocess_task01"></p>
+<h3>创建 sub_process 任务</h3>
+<p>在使用 sub_process 的过程中,需要创建所需的子结点任务,也就是我们第一步所创建的 shell 任务。然后如下图所示,在 ⑤
的位置选择对应的子结点即可。</p>
+<p><img src="/img/tasks/demo/subprocess_task02.png"
alt="subprocess_task02"></p>
+<p>创建 sub_process 完成之后,再创建一个对应的 shell 任务,用于打印
“world”,并将二者连接起来。保存当前工作流,并上线运行,即可得到想要的结果。</p>
+<p><img src="/img/tasks/demo/subprocess_task03.png"
alt="subprocess_task03"></p>
+<h2>注意事项</h2>
+<p>在使用 sub_process 调用子结点任务的时候,需要保证定义的子结点为上线状态,否则 sub_process 的工作流无法正常运行。</p>
</div></section><footer class="footer-container"><div
class="footer-body"><div><h3>联系我们</h3><h4>有问题需要反馈?请通过以下方式联系我们。</h4></div><div
class="contact-container"><ul><li><a
href="/zh-cn/community/development/subscribe.html"><img class="img-base"
src="/img/emailgray.png"/><img class="img-change"
src="/img/emailblue.png"/><p>邮件列表</p></a></li><li><a
href="https://twitter.com/dolphinschedule"><img class="img-base"
src="/img/twittergray.png"/><img class="img-change"
src="/img/twitterblue.png"/><p [...]
<script
src="//cdn.jsdelivr.net/npm/[email protected]/dist/react-with-addons.min.js"></script>
<script
src="//cdn.jsdelivr.net/npm/[email protected]/dist/react-dom.min.js"></script>
diff --git a/zh-cn/docs/dev/user_doc/guide/task/sub-process.json
b/zh-cn/docs/dev/user_doc/guide/task/sub-process.json
index aa5f52e..b8b776f 100644
--- a/zh-cn/docs/dev/user_doc/guide/task/sub-process.json
+++ b/zh-cn/docs/dev/user_doc/guide/task/sub-process.json
@@ -1,6 +1,6 @@
{
"filename": "sub-process.md",
- "__html":
"<h1>子流程节点</h1>\n<ul>\n<li>子流程节点,就是把外部的某个工作流定义当做一个任务节点去执行。</li>\n</ul>\n<blockquote>\n<p>拖动工具栏中的<img
src=\"https://analysys.github.io/easyscheduler_docs_cn/images/toolbar_SUB_PROCESS.png\"
alt=\"PNG\">任务节点到画板中,如下图所示:</p>\n</blockquote>\n<p align=\"center\">\n <img
src=\"/img/subprocess_edit.png\" width=\"80%\" />\n
</p>\n<ul>\n<li>节点名称:一个工作流定义中的节点名称是唯一的</li>\n<li>运行标志:标识这个节点是否能正常调度</li>\n<li>描述信息:描述该节点的功能</li>\n<li>超时告警:勾选超时告警、超时失败,当任务超过"超时时长"后,会发送告警邮件并且任务执行失败.</l
[...]
+ "__html":
"<h1>子流程节点</h1>\n<h2>综述</h2>\n<p>子流程节点,就是把外部的某个工作流定义当做一个节点去执行。</p>\n<h2>创建任务</h2>\n<ul>\n<li>\n<p>点击项目管理
-> 项目名称 -> 工作流定义,点击”创建工作流”按钮,进入 DAG 编辑页面:</p>\n</li>\n<li>\n<p>拖动工具栏的
<img src=\"/img/tasks/icons/sub_process.png\" width=\"15\"/>
任务节点到画板中。</p>\n</li>\n</ul>\n<h2>任务参数</h2>\n<ul>\n<li>节点名称:设置任务的名称。一个工作流定义中的节点名称是唯一的。</li>\n<li>运行标志:标识这个节点是否能正常调度,如果不需要执行,可以打开禁止执行开关。</li>\n<li>描述:描述该节点的功能。</li>\n<li>任务优先级:worker
线程数不足时,根据优先级从高到低依次执行,优先级一样时根据先进先出原则执行。</li>\n<li>Worker 分 [...]
"link": "/dist/zh-cn/docs/dev/user_doc/guide/task/sub-process.html",
"meta": {}
}
\ No newline at end of file