-
Notifications
You must be signed in to change notification settings - Fork 2
fix: removed async auth calls #363
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
base: fix/retry-status
Are you sure you want to change the base?
Conversation
378aace to
5027112
Compare
| logger.info("Access token expired, refreshing token") | ||
| await loop.run_in_executor(None, auth.login) | ||
| headers = await loop.run_in_executor(None, auth.get_headers) | ||
| auth.login() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auth.login() is blocking. Calling it synchronously from async code will block the event loop and can stall uploads or progress reporting. Please run login off the event loop again (eg await asyncio.to_thread(auth.login) or executor).
| logger.info("Access token expired, refreshing token") | ||
| await loop.run_in_executor(None, auth.login) | ||
| headers = await loop.run_in_executor(None, auth.get_headers) | ||
| auth.login() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as before
favour-neuraco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM W comment
Features
Bugfixes