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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a job (in Quarkus) with an async flow which does some processing on a fixed number of items.
In the
onCompletefunction 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-4I have tried to use
runOnSubscriptionOnandemitOnwithInfrastructure.defaultWorkerPool,Infrastructure.getDefaultExecutorand several thread pools from theExecutorsclass, but all keep giving the same failure.I have also tried to add
@Blockingon thepersistProcessResultsfunction. Also did not work.Beta Was this translation helpful? Give feedback.
All reactions