mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 11:47:51 +08:00
some annotation optimizations (#2333)
Co-authored-by: songqh <songquanhe@foxmail.com>
This commit is contained in:
parent
526e5c91f1
commit
f7e89e4561
@ -98,7 +98,7 @@ public class ExecutorService extends BaseService{
|
||||
String receivers, String receiversCc, RunMode runMode,
|
||||
Priority processInstancePriority, int workerGroupId, Integer timeout) throws ParseException {
|
||||
Map<String, Object> result = new HashMap<>(5);
|
||||
// timeout is valid
|
||||
// timeout is invalid
|
||||
if (timeout <= 0 || timeout > MAX_TASK_TIMEOUT) {
|
||||
putMsg(result,Status.TASK_TIMEOUT_PARAMS_ERROR);
|
||||
return result;
|
||||
|
@ -22,10 +22,10 @@ package org.apache.dolphinscheduler.common.enums;
|
||||
public enum ZKNodeType {
|
||||
|
||||
/**
|
||||
* 0 do not send warning;
|
||||
* 1 send if process success;
|
||||
* 2 send if process failed;
|
||||
* 3 send if process ending;
|
||||
* 0 master node;
|
||||
* 1 worker node;
|
||||
* 2 dead_server node;
|
||||
* 3 task_queue node;
|
||||
*/
|
||||
MASTER, WORKER, DEAD_SERVER, TASK_QUEUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user