Skip to content
Snippets Groups Projects
Commit e6812a71 authored by Morris Jette's avatar Morris Jette
Browse files

Improve slurmstepd logging

parent a9dc0097
No related branches found
No related tags found
No related merge requests found
...@@ -786,29 +786,30 @@ _handle_signal_container(int fd, stepd_step_rec_t *job, uid_t uid) ...@@ -786,29 +786,30 @@ _handle_signal_container(int fd, stepd_step_rec_t *job, uid_t uid)
/* Not really errors, /* Not really errors,
* but we want messages displayed by default */ * but we want messages displayed by default */
if (sig == SIG_TIME_LIMIT) { if (sig == SIG_TIME_LIMIT) {
error("*** %s CANCELLED AT %s DUE TO TIME LIMIT on %s ***", error("*** %s ON %s CANCELLED AT %s DUE TO TIME LIMIT ***",
entity, time_str, job->node_name); entity, job->node_name, time_str);
msg_sent = 1; msg_sent = 1;
} else if (sig == SIG_PREEMPTED) { } else if (sig == SIG_PREEMPTED) {
error("*** %s CANCELLED AT %s DUE TO PREEMPTION on %s ***", error("*** %s ON %s CANCELLED AT %s DUE TO PREEMPTION ***",
entity, time_str, job->node_name); entity, job->node_name, time_str);
msg_sent = 1; msg_sent = 1;
} else if (sig == SIG_NODE_FAIL) { } else if (sig == SIG_NODE_FAIL) {
error("*** %s CANCELLED AT %s DUE TO NODE %s FAILURE ***", error("*** %s ON %s CANCELLED AT %s DUE TO NODE "
entity, time_str, job->node_name); "FAILURE, SEE SLURMCTLD LOG FOR DETAILS ***",
entity, job->node_name, time_str);
msg_sent = 1; msg_sent = 1;
} else if (sig == SIG_REQUEUED) { } else if (sig == SIG_REQUEUED) {
error("*** %s CANCELLED AT %s DUE TO JOB REQUEUE ***", error("*** %s ON %s CANCELLED AT %s DUE TO JOB REQUEUE ***",
entity, time_str); entity, job->node_name, time_str);
msg_sent = 1; msg_sent = 1;
} else if (sig == SIG_FAILURE) { } else if (sig == SIG_FAILURE) {
error("*** %s FAILED (non-zero exit code or other " error("*** %s ON %s FAILED (non-zero exit code or other "
"failure mode) on %s ***", "failure mode) ***",
entity, job->node_name); entity, job->node_name);
msg_sent = 1; msg_sent = 1;
} else if ((sig == SIGTERM) || (sig == SIGKILL)) { } else if ((sig == SIGTERM) || (sig == SIGKILL)) {
error("*** %s CANCELLED AT %s *** on %s", error("*** %s ON %s CANCELLED AT %s ***",
entity, time_str, job->node_name); entity, job->node_name, time_str);
msg_sent = 1; msg_sent = 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