Skip to content

Commit cfd68d4

Browse files
author
Shreyas-Microsoft
committed
cleanup
1 parent 8791b09 commit cfd68d4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/backend/sql_agents/convert_script.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ async def convert_script(
4646
# Setup the group chat for the agents
4747
comms_manager = CommsManager(
4848
sql_agents.idx_agents,
49-
max_retries=5,
50-
initial_delay=1.0,
51-
backoff_factor=2.0,
49+
max_retries=5, # Retry up to 5 times for rate limits
50+
initial_delay=1.0, # Start with 1 second delay
51+
backoff_factor=2.0, # Double delay each retry
5252
)
5353

5454
# send websocket notification that file processing has started
@@ -275,8 +275,6 @@ async def convert_script(
275275
logger.info(
276276
"Analysis of source and migrated queries:\n%s", "semantic verifier response"
277277
)
278-
# Delete the thread using CommsManager
279-
# await comms_manager.close()
280278

281279
return migrated_query
282280

0 commit comments

Comments
 (0)