Skip to content

Commit

Permalink
Fix job disoveryAPI HB (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyz26 committed Aug 11, 2023
1 parent 4d0fd66 commit 82732d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public CompletionStage<JobDiscoveryRouteProto.SchedInfoResponse> schedulingInfoS
Observable<JobSchedulingInfo> heartbeats =
Observable.interval(5, serverIdleConnectionTimeout.getSeconds() - 1, TimeUnit.SECONDS)
.map(x -> {
if(!isJobCompleted.get()) {
if(isJobCompleted.get()) {
return SCHED_INFO_HB_INSTANCE;
} else {
return completedJobSchedulingInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ public Optional<JobWorker> processWorkerEvent(WorkerEvent event, MantisJobStore
try {
worker.processEvent(event, jobStore);
} catch (InvalidWorkerStateChangeException wex) {
LOGGER.warn("InvalidWorkerStateChangeException from {}: {}", wex);
LOGGER.warn("InvalidWorkerStateChangeException from: ", wex);
}

return of(worker);
Expand Down

0 comments on commit 82732d0

Please sign in to comment.