Skip to content

Comments

Feat: add longer polling#381

Merged
S1ro1 merged 1 commit intomainfrom
fix-longer-polling
Dec 17, 2025
Merged

Feat: add longer polling#381
S1ro1 merged 1 commit intomainfrom
fix-longer-polling

Conversation

@S1ro1
Copy link
Member

@S1ro1 S1ro1 commented Dec 17, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 17, 2025 01:48
@S1ro1 S1ro1 merged commit c3a5083 into main Dec 17, 2025
7 of 11 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR increases the polling interval for GitHub workflow completion checks from 15 to 30 seconds. The change affects the wait_for_completion method in the GitHub launcher, which polls the GitHub API to monitor workflow run status until completion or timeout.

Key Changes:

  • Doubled the polling interval from 15 to 30 seconds in the workflow status checking loop

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


await callback(self)
await asyncio.sleep(15) # Yield control while waiting
await asyncio.sleep(30) # Yield control while waiting
Copy link

Copilot AI Dec 17, 2025

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.

Copilot uses AI. Check for mistakes.

await callback(self)
await asyncio.sleep(15) # Yield control while waiting
await asyncio.sleep(30) # Yield control while waiting
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

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

Doubling the polling interval from 15 to 30 seconds means that completed workflows will be detected up to 30 seconds later on average, which could impact user experience. Consider making this configurable through a parameter or constant, so it can be tuned based on actual GitHub API rate limits or usage patterns rather than being a fixed value.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant