Merge branch 'patch-redeploy-contationer-in-multi-server' of https://gitee.com/diligents/PowerJob into pr-gitee-worker-cluster-bugfix

This commit is contained in:
tjq 2023-08-14 23:20:55 +08:00
commit b5085e09f1

View File

@ -75,6 +75,7 @@ public class WorkerClusterQueryService {
* @param appId appId
* @return alive workers
*/
@DesignateServer
public List<WorkerInfo> getAllAliveWorkers(Long appId) {
List<WorkerInfo> workers = Lists.newLinkedList(getWorkerInfosByAppId(appId).values());
workers.removeIf(WorkerInfo::timeout);