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 9ec0622 commit 5a4ae08Copy full SHA for 5a4ae08
octobot/strategy_optimizer/strategy_design_optimizer.py
@@ -712,11 +712,12 @@ def _generate_runs(self):
712
if self._is_run_allowed(run)
713
}
714
if runs:
715
- for run in self._shuffle_and_select_runs(runs, select_size=self.queue_size).values():
+ shuffled_runs = self._shuffle_and_select_runs(runs, select_size=self.queue_size)
716
+ for run in shuffled_runs.values():
717
for run_input in run:
718
# do not store self.CONFIG_KEY
719
run_input.pop(self.CONFIG_KEY, None)
- return runs
720
+ return shuffled_runs
721
raise RuntimeError("No optimizer run to schedule with this configuration")
722
723
def _is_run_allowed(self, run):
0 commit comments