Skip to content
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

fix: better exception handling. #398

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Yhlong00
Copy link
Contributor

Just catch the asyncio.TimeoutError and throw in a debug log for it.

image

@Yhlong00 Yhlong00 requested a review from deanq January 31, 2025 02:09
@Yhlong00 Yhlong00 self-assigned this Jan 31, 2025
@Yhlong00 Yhlong00 added the fixed label Jan 31, 2025
@@ -211,7 +211,7 @@ async def get_jobs(self, session: ClientSession):
)
finally:
# Yield control back to the event loop
await asyncio.sleep(0)
await asyncio.sleep(0.1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this! I was thinking about avoiding excessive API calls. That article was really helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants