Skip to content
Snippets Groups Projects
Commit 84e1a0f8 authored by Mark Grondona's avatar Mark Grondona
Browse files

o more useful error message when SLURM_JOBID env var references an

   invalid or expired job.
parent b65ce7bd
No related branches found
No related tags found
No related merge requests found
...@@ -125,8 +125,13 @@ existing_allocation(void) ...@@ -125,8 +125,13 @@ existing_allocation(void)
job.uid = getuid(); job.uid = getuid();
if (slurm_confirm_allocation(&job, &resp) < 0) { if (slurm_confirm_allocation(&job, &resp) < 0) {
error("Unable to confirm resource allocation for job %u: %m", if (errno == ESLURM_ALREADY_DONE)
job.job_id); error ("SLURM job %u has expired.", job.job_id);
else
error ("Unable to confirm allocation for job %u: %m",
job.job_id);
info ("Check SLURM_JOBID environment variable "
"for expired or invalid job.");
exit(1); exit(1);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment