Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/fractale/software-nested-slot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resources:
label: task
tasks:
- command:
- gmx
- curl
slot: task
count:
per_slot: 1
Expand Down
3 changes: 2 additions & 1 deletion fractale/jobspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down