Skip to content

Commit c57ed5b

Browse files
committed
fix file processing with delay
1 parent 4eac997 commit c57ed5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/sql_agents/process_batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ async def process_batch_async(
117117
batch_service,
118118
sql_agents,
119119
)
120-
# TEMPORARY: awaiting bug fix for rate limits
121-
await asyncio.sleep(5)
122120
if converted_query:
123121
# Add RAI disclaimer to the converted query
124122
converted_query = add_rai_disclaimer(converted_query)
@@ -127,6 +125,8 @@ async def process_batch_async(
127125
)
128126
else:
129127
await batch_service.update_file_counts(file["file_id"])
128+
# TEMPORARY: awaiting bug fix for rate limits
129+
await asyncio.sleep(5)
130130
except UnicodeDecodeError as ucde:
131131
logger.error("Error decoding file: %s", file)
132132
logger.error("Error decoding file. %s", ucde)

0 commit comments

Comments
 (0)