Skip to content

Commit

Permalink
Skipping list search completely if !searchIfFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
krisv committed Sep 11, 2024
1 parent e2cb609 commit fc488fb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,18 @@ public boolean removeJob(JobHandle jobHandle, Timer ejbTimer, boolean searchIfFa
return false;
}
return true;
} else {
logger.warn("No TimerHandle found for {}: {}", ejbHandle, ejbTimerHandle);
}
} else {
logger.warn("No timerJobInstance available for {}", ejbHandle);
}

if (!searchIfFailed) {
logger.warn("Timer not found for {} and {}, skipping list search", ejbHandle, ejbTimer);
return false;
}

for (Timer timer : timerService.getTimers()) {
try {
Serializable info = timer.getInfo();
Expand Down

0 comments on commit fc488fb

Please sign in to comment.