Merge branch 'pr-gitee-worker-cluster-bugfix' into 4.3.5

This commit is contained in:
tjq 2023-08-14 23:21:28 +08:00
commit 74a92622a3

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);