We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b269f87 commit 3cab8eaCopy full SHA for 3cab8ea
codeflash/optimization/function_optimizer.py
@@ -362,7 +362,7 @@ def determine_best_candidate(
362
candidates = deque(candidates)
363
# Start a new thread for AI service request, start loop in main thread
364
# check if aiservice request is complete, when it is complete, append result to the candidates list
365
- with concurrent.futures.ThreadPoolExecutor() as executor:
+ with concurrent.futures.ThreadPoolExecutor(max_workers=1) as executor:
366
future_line_profile_results = executor.submit(
367
self.aiservice_client.optimize_python_code_line_profiler,
368
source_code=code_context.read_writable_code,
0 commit comments