diff --git a/examples/fractale/software-nested-slot.yaml b/examples/fractale/software-nested-slot.yaml index 5528e6d..acebc4e 100644 --- a/examples/fractale/software-nested-slot.yaml +++ b/examples/fractale/software-nested-slot.yaml @@ -11,7 +11,7 @@ resources: label: task tasks: - command: - - gmx + - curl slot: task count: per_slot: 1 diff --git a/fractale/jobspec.py b/fractale/jobspec.py index 5ba461f..883c00d 100644 --- a/fractale/jobspec.py +++ b/fractale/jobspec.py @@ -65,7 +65,8 @@ def check_resource(resource, is_slot=False): for item in resource["with"]: if is_slot: new_slot = copy.deepcopy(item) - total = item["count"] * slot_count + # I'm not actually sure about this - need to ask Dan/Tom + total = item["count"] * slot_count * resource["count"] slots.append(Slot(new_slot, total=total)) # Again, we can eventually support multiple slots by