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 ee4749a commit 15b72b1Copy full SHA for 15b72b1
codeflash/optimization/function_optimizer.py
@@ -221,7 +221,12 @@ def _process_code_repair(self) -> OptimizedCandidate | None:
221
222
def is_done(self) -> bool:
223
"""Check if processing is complete."""
224
- return self.line_profiler_done and self.refinement_done and self.candidate_queue.empty()
+ return (
225
+ self.line_profiler_done
226
+ and self.refinement_done
227
+ and len(self.future_all_code_repair) == 0
228
+ and self.candidate_queue.empty()
229
+ )
230
231
232
class FunctionOptimizer:
0 commit comments