[Feature-9566][Docs] Missing shell script application_id listening logic (#9778)

This commit is contained in:
xiangzihao 2022-04-27 09:51:25 +08:00 committed by GitHub
parent 341e220bf0
commit 71c1a31e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -41,3 +41,8 @@ we declare a custom parameter named "param_key", with the value "param_val". The
After running this example, we would see "param_val" print in the log.
![demo-shell-custom-param](/img/tasks/demo/shell_custom_param.jpg)
## Attention
The shell task type resolves whether the task log contains ```application_xxx_xxx``` to determine whether is the yarn task. If so, the corresponding application
will be use to judge the running state of the current shell node. At this time, if stops the operation of the workflow, the corresponding ```application_id```
will be killed.

View File

@ -45,4 +45,4 @@ Shell 任务类型,用于创建 Shell 类型的任务并执行一系列的 She
## 注意事项
Shell 任务类型通过解析任务日志是否包含 ```application_xxx_xxx``` 的内容来判断是否 Yarn 任务,如果是则会将相应的 ```application_id``` 的状态作为当前 Shell 节点的运行状态判断,此时如果操作停止工作流则会 Kill 相应的 ```application_id```