Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codeflash/optimization/function_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import ast
import concurrent.futures
import os
import shutil
import subprocess
import time
import uuid
Expand Down Expand Up @@ -405,9 +404,10 @@ def determine_best_candidate(
future_line_profile_results = None
try:
candidate = candidates.popleft()
except IndexError as e:
except IndexError:
if done:
break
time.sleep(0.1)
continue
candidate_index += 1
get_run_tmp_file(Path(f"test_return_values_{candidate_index}.bin")).unlink(missing_ok=True)
Expand Down
Loading