Skip to content

Commit 83fc288

Browse files
committed
For status checks, return DRMAA_ERRNO_DRM_COMMUNICATION_FAILURE when
slurm communication problems are encountered. Thanks @tbooth!
1 parent 876c167 commit 83fc288

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

slurm_drmaa/job.c

+3
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ slurmdrmaa_job_update_status( fsd_job_t *self )
130130

131131
if (_slurm_errno == ESLURM_INVALID_JOB_ID) {
132132
self->on_missing(self);
133+
} else if (_slurm_errno == SLURM_PROTOCOL_SOCKET_IMPL_TIMEOUT ||
134+
_slurm_errno == SLURMCTLD_COMMUNICATIONS_CONNECTION_ERROR) {
135+
fsd_exc_raise_fmt(FSD_ERRNO_DRM_COMMUNICATION_FAILURE,"slurm_load_jobs error: %s,job_id: %s", slurm_strerror(_slurm_errno), self->job_id);
133136
} else {
134137
fsd_exc_raise_fmt(FSD_ERRNO_INTERNAL_ERROR,"slurm_load_jobs error: %s,job_id: %s", slurm_strerror(slurm_get_errno()), self->job_id);
135138
}

0 commit comments

Comments
 (0)