Skip to content
Snippets Groups Projects
Commit 50cafcf7 authored by Danny Auble's avatar Danny Auble
Browse files

BLUEGENE - Fix for if changing the defined blocks in the bluegene.conf and

jobs happen to be running on blocks not in the new config.
parent 98b203d4
No related branches found
No related tags found
No related merge requests found
......@@ -282,10 +282,21 @@ static int _delete_old_blocks(List curr_block_list, List found_block_list)
thread safe here) we must do it
now.
*/
if (init_record->job_running > NO_JOB_RUNNING) {
/* The slurmctld is already
locked here so don't worry
about locking the job lock.
if ((init_record->job_running > NO_JOB_RUNNING)
|| init_record->job_ptr) {
/* Don't worry about dealing
with this job here. Trying
to requeue/cancel now will
cause a race condition
locking up the slurmctld.
It will be handled when the
blocks are synced. This
should only happen if the
bluegene.conf gets changed
and jobs are running on
blocks that don't exist in
the new config (hopefully
rarely).
*/
init_record->job_running =
NO_JOB_RUNNING;
......
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