Skip to content

Commit

Permalink
[incubator-kie-issues-1324] Live reload does not work for KN CLI plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
treblereel committed Jun 21, 2024
1 parent 4078795 commit 57efe4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ protected Uni<JobServiceManagementInfo> tryBecomeLeader(JobServiceManagementInfo
}

protected Uni<Void> release(JobServiceManagementInfo info) {
leader.set(false);
return repository.set(new JobServiceManagementInfo(info.getId(), null, null))
.onItem().invoke(this::disableCommunication)
.onItem().invoke(i -> leader.set(false))
.onItem().invoke(i -> LOGGER.info("Leader instance released"))
.onFailure().invoke(ex -> LOGGER.error("Error releasing leader"))
.replaceWithVoid();
Expand Down

0 comments on commit 57efe4b

Please sign in to comment.