We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50862c1 commit ce2154aCopy full SHA for ce2154a
nipype/pipeline/plugins/slurm.py
@@ -70,6 +70,10 @@ def _is_pending(self, taskid):
70
terminal_output='allatonce').run()
71
return res.runtime.stdout.find(str(taskid)) > -1
72
except RuntimeError as e:
73
+ if any(ss in str(e) for ss
74
+ in ['Socket timed out', 'not available at the moment']):
75
+ # do not raise error and allow recheck
76
+ return True
77
if 'Invalid job id' not in str(e):
78
raise(e)
79
return False
0 commit comments