Skip to content

Commit 5a4ae08

Browse files
techfreaqueGuillaumeDSM
authored andcommitted
[Optimizer] fix adding specific queue size
1 parent 9ec0622 commit 5a4ae08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

octobot/strategy_optimizer/strategy_design_optimizer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,12 @@ def _generate_runs(self):
712712
if self._is_run_allowed(run)
713713
}
714714
if runs:
715-
for run in self._shuffle_and_select_runs(runs, select_size=self.queue_size).values():
715+
shuffled_runs = self._shuffle_and_select_runs(runs, select_size=self.queue_size)
716+
for run in shuffled_runs.values():
716717
for run_input in run:
717718
# do not store self.CONFIG_KEY
718719
run_input.pop(self.CONFIG_KEY, None)
719-
return runs
720+
return shuffled_runs
720721
raise RuntimeError("No optimizer run to schedule with this configuration")
721722

722723
def _is_run_allowed(self, run):

0 commit comments

Comments
 (0)