Skip to content

Commit

Permalink
Revert [incubator-kie-issues#1633] Removing blocking completablefutur…
Browse files Browse the repository at this point in the history
…e.get invocation (#2148 (#2168)
  • Loading branch information
pefernan authored Dec 20, 2024
1 parent 61ca0fe commit aebb2d8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.kie.kogito.jobs.embedded;

import java.util.List;
import java.util.concurrent.ExecutionException;

import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.kie.kogito.event.EventPublisher;
Expand Down Expand Up @@ -80,9 +81,9 @@ public JobDetails publishJobStatusChange(JobDetails jobDetails) {
return jobDetails;
}

bus.fireAsync(new EmbeddedJobServiceEvent(jobDetails));
bus.fireAsync(new EmbeddedJobServiceEvent(jobDetails)).toCompletableFuture().get();
return jobDetails;
} catch (Exception e) {
} catch (InterruptedException | ExecutionException e) {
throw new RuntimeException(e);
}
}
Expand Down

0 comments on commit aebb2d8

Please sign in to comment.