Skip to content

Commit c3e6f02

Browse files
committed
fixed caching
1 parent bb2f6ed commit c3e6f02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/pipeline/plugins/slurmgraph.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class SLURMGraphPlugin(GraphPluginBase):
4444
"""
4545

4646
def __init__(self, **kwargs):
47-
self._qsub_args = ''
4847
if 'plugin_args' in kwargs and kwargs['plugin_args']:
4948
if 'retry_timeout' in kwargs['plugin_args']:
5049
self._retry_timeout = kwargs['plugin_args']['retry_timeout']
@@ -131,7 +130,7 @@ def make_job_name(jobnumber, nodeslist):
131130
values = ' '
132131
for jobid in dependencies[idx]:
133132
## Avoid dependancies of done jobs
134-
if cache_doneness_per_node[jobid] == False:
133+
if not self._dont_resubmit_completed_jobs or cache_doneness_per_node[jobid] == False:
135134
values += "${{{0}}}:".format(make_job_name(jobid, nodes))
136135
if values != ' ': # i.e. if some jobs were added to dependency list
137136
values = values.rstrip(',')

0 commit comments

Comments
 (0)