-
I have some questions regarding nesting of calls, suppose i have something like the following :
Now with the above pipeline im loosing control after the first selectFromDb() most likely in the pgPool.withTransaction() part. How do i get this to work without placing await() after the call to pgPool.withTransaction() ps. the following works and performs the retries starting from the top transform() call executing everything within it
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
ive' managed to get this to work with the following
so basically i think i was not flattening the withTransaction that returns a Uni of Uni |
Beta Was this translation helpful? Give feedback.
-
Ive just realised that the failure is propagated all the way up the stream, so there's no point in nesting those calls inside the map() block... my intent was to limit the retry to that of the previous called operation, im the example would be the map() |
Beta Was this translation helpful? Give feedback.
ive' managed to get this to work with the following
so basically i think i was not flattening the withTransaction that returns a Uni of Uni
but im not convinced of this solution, can anyone weight in ? by the way the withTransaction part is supposed to update various tables using optmistic locking that's why i need to start the operation from the top most map() call