ruanwenjun commented on code in PR #13448:
URL: 
https://github.com/apache/dolphinscheduler/pull/13448#discussion_r1089875699


##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/dispatch/ExecutorDispatcher.java:
##########
@@ -86,13 +86,13 @@ public Boolean dispatch(final ExecutionContext context) 
throws ExecuteException
         if (StringUtils.isEmpty(host.getAddress())) {
             logger.warn("fail to execute : {} due to no suitable worker, 
current task needs worker group {} to execute",
                     context.getCommand(), context.getWorkerGroup());
-            return false;
+            throw new ExecuteException("no suitable worker");

Review Comment:
   We cannot throw `WorkerGroupNotFoundException`  here, since the worker group 
may exist, just no suitable worker(Worker is overload).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to