We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 699df35 + 509fb38 commit 504858eCopy full SHA for 504858e
nipype/pipeline/plugins/slurm.py
@@ -54,11 +54,11 @@ def __init__(self, **kwargs):
54
if 'sbatch_args' in kwargs['plugin_args']:
55
self._sbatch_args = kwargs['plugin_args']['sbatch_args']
56
self._pending = {}
57
- super(SLURMPlugin, self).__init__(template, **kwargs)
+ super(SLURMPlugin, self).__init__(self._template, **kwargs)
58
59
def _is_pending(self, taskid):
60
# subprocess.Popen requires taskid to be a string
61
- proc = subprocess.Popen(["showq", '-u'],
+ proc = subprocess.Popen(["squeue", '-j', '%s' % taskid],
62
stdout=subprocess.PIPE,
63
stderr=subprocess.PIPE)
64
o, _ = proc.communicate()
0 commit comments