mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
refactor: optimize worker skip round log
This commit is contained in:
parent
c627776764
commit
dc62c1b992
@ -499,7 +499,6 @@ public abstract class HeavyTaskTracker extends TaskTracker {
|
|||||||
do {
|
do {
|
||||||
loopTime++;
|
loopTime++;
|
||||||
if (loopTime > 2) {
|
if (loopTime > 2) {
|
||||||
log.warn("[TaskTracker-{}] The cluster has no available workers other than master, so this round dispatch is skipped.", instanceId);
|
|
||||||
skipThisRound.set(true);
|
skipThisRound.set(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -514,6 +513,7 @@ public abstract class HeavyTaskTracker extends TaskTracker {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (skipThisRound.get()) {
|
if (skipThisRound.get()) {
|
||||||
|
log.warn("[TaskTracker-{}] The cluster has no available workers other than master, so this round dispatch is skipped.", instanceId);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user