File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ def __init__(self, **kwargs):
36
36
super (PBSPlugin , self ).__init__ (template , ** kwargs )
37
37
38
38
def _is_pending (self , taskid ):
39
- proc = subprocess .Popen (["qstat" , taskid ],
39
+ # subprocess.Popen requires taskid to be a string
40
+ proc = subprocess .Popen (["qstat" , str (taskid )],
40
41
stdout = subprocess .PIPE ,
41
42
stderr = subprocess .PIPE )
42
43
_ , e = proc .communicate ()
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ def __init__(self, **kwargs):
37
37
super (SGEPlugin , self ).__init__ (template , ** kwargs )
38
38
39
39
def _is_pending (self , taskid ):
40
- proc = subprocess .Popen (["qstat" , '-j' , taskid ],
40
+ # subprocess.Popen requires taskid to be a string
41
+ proc = subprocess .Popen (["qstat" , '-j' , str (taskid )],
41
42
stdout = subprocess .PIPE ,
42
43
stderr = subprocess .PIPE )
43
44
o , _ = proc .communicate ()
You can’t perform that action at this time.
0 commit comments