tiagodolphine commented on code in PR #1888:
URL:
https://github.com/apache/incubator-kie-kogito-apps/pull/1888#discussion_r1341310736
##########
jobs-service/jobs-service-common/src/main/java/org/kie/kogito/jobs/service/scheduler/JobSchedulerManager.java:
##########
@@ -93,6 +93,8 @@ void onStartup(@Observes
@Priority(Interceptor.Priority.PLATFORM_AFTER) StartupE
protected void onMessagingStatusChange(@Observes MessagingChangeEvent
event) {
this.enabled.set(event.isEnabled());
+ //run load jobs once the instance become a leader to avoid waiting for
the next periodic run
+ vertx.runOnContext(this::loadJobDetails);
Review Comment:
@wmedvede I updated the PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]