Skip to content

Commit

Permalink
Fix less nofworkers in batch (#16)
Browse files Browse the repository at this point in the history
* Fix a problem when number of input tasks is lower than number of workers

* Bump version
  • Loading branch information
wvangeit authored Nov 28, 2024
1 parent 0594c67 commit 4c91a70
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.1.9
current_version = 1.1.10
commit = False
message = service version: {current_version} → {new_version}
tag = False
Expand Down
2 changes: 1 addition & 1 deletion .osparc/osparc-meta-parallelrunner/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ParallelRunner
description: "ParallelRunnerService"
key: simcore/services/dynamic/osparc-meta-parallelrunner
version: 1.1.9
version: 1.1.10
integration-version: 2.0.0
type: dynamic
authors:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SHELL = /bin/sh
MAKEFLAGS += -j2

export DOCKER_IMAGE_NAME ?= osparc-meta-parallelrunner
export DOCKER_IMAGE_TAG ?= 1.1.9
export DOCKER_IMAGE_TAG ?= 1.1.10

export MASTER_AWS_REGISTRY ?= registry.osparc-master-zmt.click
export MASTER_REGISTRY ?= registry.osparc-master.speag.com
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
osparc-meta-parallelrunner:
image: simcore/services/dynamic/osparc-meta-parallelrunner:1.1.9
image: simcore/services/dynamic/osparc-meta-parallelrunner:1.1.10
ports:
- "8888:8888"
environment:
Expand Down
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 4c91a70

Please sign in to comment.