Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nipype/pipeline/plugins/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def _is_pending(self, taskid):
terminal_output='allatonce').run()
return res.runtime.stdout.find(str(taskid)) > -1
except RuntimeError as e:
if any(ss in str(e) for ss
in ['Socket timed out', 'not available at the moment']):
# do not raise error and allow recheck
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be a good idea to add a log entry for this case.

return True
if 'Invalid job id' not in str(e):
raise(e)
return False
Expand Down