Skip to content
Snippets Groups Projects
Commit f9386850 authored by Moe Jette's avatar Moe Jette
Browse files

For sched/wiki2 job state request, return REJMESSAGE= with reason for

    a job's failure.
parent edb6e6de
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ documents those changes that are of interest to users and admins.
-- Modity job state "reason" field to report why a job failed (previously
previously reported only reason waiting to run). Requires cold-start of
slurmctld (-c option).
-- For sched/wiki2 job state request, return REJMESSAGE= with reason for
a job's failure.
* Changes in SLURM 1.2.0-pre7
=============================
......
......@@ -190,6 +190,13 @@ static char * _dump_job(struct job_record *job_ptr, int state_info)
xstrcat(buf, tmp);
}
if (job_ptr->job_state == JOB_FAILED) {
snprintf(tmp, sizeof(tmp),
"REJMESSAGE=\"%s\";",
job_reason_string(job_ptr->state_reason));
xstrcat(buf, tmp);
}
snprintf(tmp, sizeof(tmp),
"UPDATETIME=%u;WCLIMIT=%u;",
(uint32_t) job_ptr->time_last_active,
......
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