Skip to content

Commit

Permalink
[incubator-kie-issues-1324] Live reload does not work for KN CLI plug…
Browse files Browse the repository at this point in the history
…in (#2074)
  • Loading branch information
treblereel committed Jul 12, 2024
1 parent 33292e5 commit 1291fa3
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 1291fa3

Please sign in to comment.