We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce1ef65 + 6cc6fcb commit cfb5abaCopy full SHA for cfb5aba
nipype/pipeline/plugins/slurm.py
@@ -70,6 +70,14 @@ 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
+ logger.warning(
77
+ "SLURM timeout encountered while checking job status,"
78
+ " treating job %d as pending", taskid
79
+ )
80
+ return True
81
if 'Invalid job id' not in str(e):
82
raise(e)
83
return False
0 commit comments