Skip to content

Commit 4500a03

Browse files
committed
Fix resources in sub-job
when users groups are created in the local instance of snakemake, ressource are merged like in pipes.
1 parent 2d6cf8d commit 4500a03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

snakemake/dag.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,8 +1853,9 @@ def handle_pipes_and_services(self):
18531853
j.pipe_group = group
18541854
visited.add(j)
18551855

1856-
if has_nodelocal:
1856+
if has_nodelocal and not self.workflow.local_exec:
18571857
# put the dependencies in the same user group (not pipe group as pipes are ran in parallel, whereas we want serial for nodelocal files)
1858+
# NOTE do NOT create usergroup in the node's local inst of snakemake lest the resources get merge, see: resources.py: class GroupResources
18581859
if user_groups:
18591860
ugroup = user_groups.pop()
18601861
else:

0 commit comments

Comments
 (0)