Skip to content

Commit e7c8cb7

Browse files
committed
enh: add log to alert when SLURM db is overloaded
1 parent ce2154a commit e7c8cb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nipype/pipeline/plugins/slurm.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ...interfaces.base import CommandLine
1818
from .base import SGELikeBatchManagerBase, logger
1919

20-
iflogger = logging.getLogger('nipype.interface')
20+
iflogger = logging.getLogger('nipype.workflow')
2121

2222

2323
class SLURMPlugin(SGELikeBatchManagerBase):
@@ -73,6 +73,10 @@ def _is_pending(self, taskid):
7373
if any(ss in str(e) for ss
7474
in ['Socket timed out', 'not available at the moment']):
7575
# 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+
)
7680
return True
7781
if 'Invalid job id' not in str(e):
7882
raise(e)

0 commit comments

Comments
 (0)