Skip to content

Commit 2cc5068

Browse files
committed
fix: showq may not be available on all slurm systems
1 parent b2d3a81 commit 2cc5068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/slurm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, **kwargs):
5858

5959
def _is_pending(self, taskid):
6060
# subprocess.Popen requires taskid to be a string
61-
proc = subprocess.Popen(["showq", '-u'],
61+
proc = subprocess.Popen(["squeue", '-j', '%s' % taskid],
6262
stdout=subprocess.PIPE,
6363
stderr=subprocess.PIPE)
6464
o, _ = proc.communicate()

0 commit comments

Comments
 (0)