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.
1 parent c13f967 commit 847879aCopy full SHA for 847879a
nipype/pipeline/plugins/pbs.py
@@ -49,8 +49,13 @@ def _is_pending(self, taskid):
49
environ=dict(os.environ),
50
terminal_output='allatonce',
51
ignore_exception=True).run()
52
+ stderr = result.runtime.stderr
53
errmsg = 'Unknown Job Id' # %s' % taskid
- return errmsg not in result.runtime.stderr
54
+ success = 'Job has finished'
55
+ if success in e: # Fix for my PBS
56
+ return False
57
+ else:
58
+ return errmsg not in e
59
60
def _submit_batchtask(self, scriptfile, node):
61
cmd = CommandLine('qsub', environ=dict(os.environ),
0 commit comments