Does @stamina.retry intentionally not retry exceptions raised from generator functions?
#122
Replies: 2 comments 1 reply
-
|
Definitely not on purpose! Squinting at this: we basically have to add another case on top of sync and async? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
fixed by #123 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Just a quick question: Is it intentional that stamina does not retry on exceptions raised from generator functions?
i.e., the following code prints "FUNCTION CALLED" only once:
For generator functions, I currently use a custom decorator. If this behaviour is unintentional upstream, I can create a PR adding wrapping support for generator functions.
My custom decorator (type hints stripped for readability)
Beta Was this translation helpful? Give feedback.
All reactions