mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: In multi-servers node , no workers found prompt without @DesignateServer in not conform server node
This commit is contained in:
parent
3f7d4328e9
commit
8c32c775da
@ -76,6 +76,7 @@ public class WorkerClusterQueryService {
|
|||||||
* @param appId appId
|
* @param appId appId
|
||||||
* @return alive workers
|
* @return alive workers
|
||||||
*/
|
*/
|
||||||
|
@DesignateServer
|
||||||
public List<WorkerInfo> getAllAliveWorkers(Long appId) {
|
public List<WorkerInfo> getAllAliveWorkers(Long appId) {
|
||||||
List<WorkerInfo> workers = Lists.newLinkedList(getWorkerInfosByAppId(appId).values());
|
List<WorkerInfo> workers = Lists.newLinkedList(getWorkerInfosByAppId(appId).values());
|
||||||
workers.removeIf(WorkerInfo::timeout);
|
workers.removeIf(WorkerInfo::timeout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user