refactor(launcher): 增加Clear hodler时的日志
This commit is contained in:
@@ -229,9 +229,11 @@ public class CompactionService {
|
||||
if (holder.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
logger.info("Clear holder, size: {}", holder.size());
|
||||
// 等待半分钟
|
||||
ThreadUtil.safeSleep(Constants.HALF_MINUTE);
|
||||
for (QueueItem<ScheduleJob> item : holder) {
|
||||
logger.info("Push task to pre {}", item);
|
||||
QueueUtil.add(discoveryClient, this.mapper, Constants.COMPACTION_QUEUE_PRE, item);
|
||||
}
|
||||
holder.clear();
|
||||
|
||||
Reference in New Issue
Block a user