Skip to content

Commit 9cfb703

Browse files
committed
extra condition ported from SLURMGraph
1 parent 4486775 commit 9cfb703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/sgegraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def make_job_name(jobnumber, nodeslist):
122122
values = ' '
123123
for jobid in dependencies[idx]:
124124
## Avoid dependancies of done jobs
125-
if cache_doneness_per_node[jobid] == False:
125+
if not self._dont_resubmit_completed_jobs or cache_doneness_per_node[jobid] == False:
126126
values += "${{{0}}},".format(make_job_name(jobid, nodes))
127127
if values != ' ': # i.e. if some jobs were added to dependency list
128128
values = values.rstrip(',')

0 commit comments

Comments
 (0)