-
Notifications
You must be signed in to change notification settings - Fork 22
Feat: add longer polling #381
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -344,7 +344,7 @@ async def wait_for_completion( | |
| return | ||
|
|
||
| await callback(self) | ||
| await asyncio.sleep(15) # Yield control while waiting | ||
| await asyncio.sleep(30) # Yield control while waiting | ||
|
||
| except TimeoutError: | ||
| raise # Re-raise the specific TimeoutError from the timeout block | ||
| except Exception as e: | ||
|
|
||
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.
This polling interval is hardcoded as a magic number. Consider defining it as a named constant (e.g., GITHUB_POLL_INTERVAL_SEC) in consts.py, similar to how HEARTBEAT_SEC is defined in background_submission_manager.py. This would improve maintainability and make it easier to adjust the polling interval if needed in the future.