提交 5cb00e25 编写于 作者: B baoliang

update worker group

上级 90de48bb
......@@ -177,11 +177,15 @@ public class FetchTaskThread implements Runnable{
retryTimes--;
}
if (taskInstance == null || !checkWorkerGroup(taskInstance, OSUtils.getHost())) {
if (taskInstance == null ) {
logger.error("task instance is null. task id : {} ", taskId);
continue;
}
if(!checkWorkerGroup(taskInstance, OSUtils.getHost())){
continue;
}
taskQueue.removeNode(Constants.SCHEDULER_TASKS_QUEUE, taskQueueStr);
logger.info("remove task:{} from queue", taskQueueStr);
// set execute task worker host
taskInstance.setHost(OSUtils.getHost());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册