mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: worker heartbeat use wrong thread pool
This commit is contained in:
parent
e6d32c9a05
commit
fd562d8ea0
@ -10,6 +10,10 @@ import tech.powerjob.server.common.module.ServerInfo;
|
|||||||
*/
|
*/
|
||||||
public interface ServerInfoService {
|
public interface ServerInfoService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fetch current server info
|
||||||
|
* @return ServerInfo
|
||||||
|
*/
|
||||||
ServerInfo fetchServiceInfo();
|
ServerInfo fetchServiceInfo();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,6 @@ public class ServerInfoServiceImpl implements ServerInfoService {
|
|||||||
log.info("[ServerInfoService] ip:{}, id:{}, cost:{}", ip, serverInfo.getId(), sw);
|
log.info("[ServerInfoService] ip:{}, id:{}, cost:{}", ip, serverInfo.getId(), sw);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Async(PJThreadPool.TIMING_POOL)
|
|
||||||
@Scheduled(fixedRate = 15000, initialDelay = 15000)
|
@Scheduled(fixedRate = 15000, initialDelay = 15000)
|
||||||
public void heartbeat() {
|
public void heartbeat() {
|
||||||
serverInfoRepository.updateGmtModifiedByIp(serverInfo.getIp(), new Date());
|
serverInfoRepository.updateGmtModifiedByIp(serverInfo.getIp(), new Date());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user