Skip to content
Snippets Groups Projects
Commit f636c456 authored by Michael Hinton's avatar Michael Hinton Committed by Brian Christiansen
Browse files

Never schedule the last task in a job array twice


The last task reuses array_job_id. So if job_ptr doesn't change, that
means we have already scheduled it and should never go to next_task.

job_launch() can requeue the job if it fails. This puts the job in the
completing and pending state, which could allow the last task to get
scheduled *again* without the check added here. Rescheduling a
completing job will destroy its node_bitmap and job_resrcs and cause
the job to stay completing forever.

Bug 10980

Co-authored-by: default avatarBrian Christiansen <brian@schedmd.com>
parent 73bf0a09
No related branches found
No related tags found
No related merge requests found
Loading
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