-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retries not working in a generator context? #138
Comments
An important thing to note here: Technically,
In your second example, The way generator functions work is that Python turns Now suppose an exception occurs the user's code somewhere. |
Is this issue duplicate with #64 ? |
Not a duplicate so much as a use case for #64. |
So let me preface this by saying that I tried to code up a minimal example that showed retries not happening, and I couldn't get it to not work... so I'm very confused.
Code that was not retrying basically looks like this:
client.get_collection
is a function that is a generator, so there's sort of a nested generator thing going on, and it is from within that method that theRateLimitExceeded
exception springs that i want to retry.Is there any reason this would not work? This is the minimal example I coded up to try to show it not working, but it worked fine:
The text was updated successfully, but these errors were encountered: