From 6a88923dca6df9626c2099acd2dc3f53828639c5 Mon Sep 17 00:00:00 2001 From: vsoch Date: Mon, 21 Apr 2025 18:17:00 -0600 Subject: [PATCH] question: slot count How do we derive this given that task has a variable and the slot can too? Signed-off-by: vsoch --- examples/fractale/software-nested-slot.yaml | 2 +- fractale/jobspec.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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