Pedro Mázala
02/09/2024, 4:39 PMtimeout parameter do not work the same for (un)?orderedWait and (un)?orderedWaitWithRetry I’m afraid.
As a PoC I added a Thread.sleep (🤫) to test a long task running (it varies from 75ms to 3000ms) and I was testing the code with unorderedWait (without retry) and a timeout of 150ms and every now and then I got a TO exception (expected).
But then I changed the code to unorderedWaitWithRetry and I stopped seeing them. I got a bit surprised and went checking. I changed the timeout to 1ms (which should fail them all) but it’s only ignored.
I found this issue but I don’t thing it’s related. Did you folks noticed something similar?
I’m “afraid” to have to implement a retry mechanism myself for a request there.Tim Wolfe
02/24/2024, 8:44 PMunorderedWaitWithRetry having a retry mechanism that effectively prevents immediate timeouts by retrying failed operations, unlike unorderedWait, which adheres strictly to the specified timeout. For strict timeout enforcement per attempt, you might need to implement your own retry logic.