Skip to content

Commit

Permalink
Fix a problem when number of input tasks is lower than number of workers
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Nov 28, 2024
1 parent 0594c67 commit bd5adb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker_scripts/parallelrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def run_input_tasks(self, input_tasks, tasks_uuid):
batch_mode = self.settings.batch_mode

if batch_mode:
n_of_batches = number_of_workers
n_of_batches = min(number_of_workers, len(input_tasks))
else:
n_of_batches = len(input_tasks)

Expand Down

0 comments on commit bd5adb1

Please sign in to comment.