Skip to content

Commit

Permalink
[DBACLD-157599] Removing blocking completablefuture.get invocation (a…
Browse files Browse the repository at this point in the history
…pache#2148)

Co-authored-by: Gabriele-Cardosi <gabriele.cardosi@ibm.com>
  • Loading branch information
2 people authored and rgdoliveira committed Dec 9, 2024
1 parent 2bb9242 commit 4be1423
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
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 @@ -81,9 +80,9 @@ public JobDetails publishJobStatusChange(JobDetails jobDetails) {
return jobDetails;
}

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

0 comments on commit 4be1423

Please sign in to comment.