Skip to content

Commit 05e9ab1

Browse files
committed
todo abstract into class
1 parent f67e136 commit 05e9ab1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ def determine_best_candidate(
403403
)
404404
candidate_index = 0
405405
original_len = len(candidates)
406+
# TODO : We need to rewrite this candidate loop as a class, the container which has candidates receives new candidates at unknown times due to the async nature of lp and refinement calls,
407+
# TODO : in addition, the refinement calls depend on line profiler calls being complete so we need to check that reliably
406408
while True:
407409
try:
408410
if len(candidates) > 0:

0 commit comments

Comments
 (0)