Skip to content

perf: Implement retry logic to improve resiliency #147

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shreyas-Microsoft
Copy link
Collaborator

@Shreyas-Microsoft Shreyas-Microsoft commented Jun 25, 2025

Purpose

This pull request introduces optimizations and refactors to the SQL agent backend, focusing on improved performance, parallel processing, and enhanced retry logic. It removes outdated rate-limiting workarounds and streamlines agent communication strategies. The most significant changes include the overhaul of the CommsManager class, the introduction of batch processing, and the removal of unnecessary asyncio imports.

Performance and Parallel Processing Improvements:

  • src/backend/sql_agents/helpers/comms_manager.py: Refactored the CommsManager class to include parallel processing capabilities, batch processing, optimized retry logic, and faster termination and selection strategies. Added a thread pool for parallel execution and reduced retry delays and truncation thresholds for improved efficiency.

Removal of Deprecated Rate-Limiting Workarounds:

Code Cleanup:

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@Shreyas-Microsoft Shreyas-Microsoft changed the title retry logic perf: Implement retry logic to improve resiliency Jun 25, 2025
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