Replies: 1 comment
-
Workaround I found so far: Create a decorator with the retry/timout rules from a consumer method (see Tips & Tricks) and use that on most methods, instead of the class decorator.
|
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
-
My
Consumer
class uses@uplink.timeout()
and@uplink.retry()
, since most of the methods should be retried.However, there is one method, that should fail after first timeout/error.
I tried adding
@uplink.retry(max_attempts=1)
to that one method, but it does not seem to have an effect and the request is still retried 3 times on error/timeout.Bonus question: Ideally I would love a way to set the number of attempts and even timeout when calling
Consumer
methods to override the defaults set in the decorator... is that possible?Beta Was this translation helpful? Give feedback.
All reactions