Hello there AsyncIO users :wave: I’m using it for...
# troubleshooting
p
Hello there AsyncIO users 👋 I’m using it for the first time for a HTTP enrich step in one of my Flink pipelines. And the
timeout
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.
t
The difference you're seeing is due to
unorderedWaitWithRetry
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.