Skip to content
Snippets Groups Projects
Commit c638d56c authored by Alejandro Sanchez's avatar Alejandro Sanchez Committed by Morris Jette
Browse files

For job array email, send requeue PLUS fail or end message

bug 4539
parent 5f1cc8a8
No related branches found
No related tags found
No related merge requests found
...@@ -14749,11 +14749,6 @@ extern void job_completion_logger(struct job_record *job_ptr, bool requeue) ...@@ -14749,11 +14749,6 @@ extern void job_completion_logger(struct job_record *job_ptr, bool requeue)
task_requeued = task_requeued =
(master_job->array_recs->array_flags & (master_job->array_recs->array_flags &
ARRAY_TASK_REQUEUED); ARRAY_TASK_REQUEUED);
max_exit_code =
master_job->array_recs->max_exit_code;
task_failed = (WIFEXITED(max_exit_code) &&
WEXITSTATUS(max_exit_code));
if (task_requeued && if (task_requeued &&
(job_ptr->mail_type & MAIL_JOB_REQUEUE)) { (job_ptr->mail_type & MAIL_JOB_REQUEUE)) {
/* /*
...@@ -14762,8 +14757,14 @@ extern void job_completion_logger(struct job_record *job_ptr, bool requeue) ...@@ -14762,8 +14757,14 @@ extern void job_completion_logger(struct job_record *job_ptr, bool requeue)
*/ */
mail_job_info(master_job, mail_job_info(master_job,
MAIL_JOB_REQUEUE); MAIL_JOB_REQUEUE);
} else if (task_failed && (job_ptr->mail_type & }
MAIL_JOB_FAIL)) {
max_exit_code =
master_job->array_recs->max_exit_code;
task_failed = (WIFEXITED(max_exit_code) &&
WEXITSTATUS(max_exit_code));
if (task_failed &&
(job_ptr->mail_type & MAIL_JOB_FAIL)) {
/* /*
* At least 1 task failed and job * At least 1 task failed and job
* req. to be notified on failures. * req. to be notified on failures.
......
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