处理CheckExceptionDataJob异常判断
parent
86ac3c6f0f
commit
3bd78b9ae8
|
|
@ -28,6 +28,7 @@ public class CheckExceptionDataJob implements Job {
|
|||
|
||||
for (Map.Entry<Integer, Record> entry : SvrCacheData.SUP_HEARTBEAT.entrySet()) {
|
||||
Record c = entry.getValue();
|
||||
if (c.get("tm") != null) {
|
||||
long st = c.getLong("tm");
|
||||
|
||||
// 五分钟以内的才进行判断,超过5分钟的,就认为是离线了
|
||||
|
|
@ -35,6 +36,9 @@ public class CheckExceptionDataJob implements Job {
|
|||
if (nowst - st < Const.SUP_OFFLINE_TIME) {
|
||||
onlineids.add(entry.getKey().toString());
|
||||
}
|
||||
} else {
|
||||
onlineids.add(entry.getKey().toString());
|
||||
}
|
||||
}
|
||||
|
||||
int cnt = Db.queryInt("select count(t.sn) cnt from order_temp t\n" +
|
||||
|
|
@ -62,7 +66,7 @@ public class CheckExceptionDataJob implements Job {
|
|||
log.error("没有找到在线砂站信息。");
|
||||
}
|
||||
|
||||
if(SyncTaskService.me.getTaskQueueSize() > 10){
|
||||
if (SyncTaskService.me.getTaskQueueSize() > 10) {
|
||||
content += "task queue 还有 " + SyncTaskService.me.getTaskQueueSize() + " 条数据等待处理。";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue