Replies: 1 comment
-
Calling What If that's a Vert.x |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Calling What If that's a Vert.x |
Beta Was this translation helpful? Give feedback.
-
I have a job (in Quarkus) with an async flow which does some processing on a fixed number of items.
In the
onComplete
function it has to persist the job result. This is an async db action (using reactive-pg-client). After this, the job exists.How do I wait for the db action to be completed?
Using
throws a
ERROR [io.qua.ver.cor.run.VertxCoreRecorder] (vert.x-eventloop-thread-4) Uncaught exception received by Vert.x: java.lang.IllegalStateException: The current thread cannot be blocked: vert.x-eventloop-thread-4
I have tried to use
runOnSubscriptionOn
andemitOn
withInfrastructure.defaultWorkerPool
,Infrastructure.getDefaultExecutor
and several thread pools from theExecutors
class, but all keep giving the same failure.I have also tried to add
@Blocking
on thepersistProcessResults
function. Also did not work.Beta Was this translation helpful? Give feedback.
All reactions