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

Change selected SLURM_SUCESS returns to 0.

parent fb373a6d
No related branches found
No related tags found
No related merge requests found
......@@ -1745,12 +1745,12 @@ list_find_job_old (void *job_entry, void *key)
min_age = time(NULL) - MIN_JOB_AGE;
if (((struct job_record *) job_entry)->end_time > min_age)
return SLURM_SUCCESS;
return 0;
if ((((struct job_record *) job_entry)->job_state != JOB_COMPLETE) &&
(((struct job_record *) job_entry)->job_state != JOB_FAILED) &&
(((struct job_record *) job_entry)->job_state != JOB_TIMEOUT))
return SLURM_SUCCESS;
return 0;
return 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