From 52fe11f938577ab33cf3c41e4a2385e66e18df53 Mon Sep 17 00:00:00 2001 From: Brian Christiansen <brian@schedmd.com> Date: Wed, 27 Apr 2016 14:03:17 -0700 Subject: [PATCH] Don't call NHC when step didn't get an allocation. --- src/plugins/select/cray/select_cray.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/select/cray/select_cray.c b/src/plugins/select/cray/select_cray.c index 4377ce3da76..548f3daa096 100644 --- a/src/plugins/select/cray/select_cray.c +++ b/src/plugins/select/cray/select_cray.c @@ -2216,6 +2216,11 @@ static void _start_killing_step(struct step_record *step_ptr) return; } + if (!step_ptr->select_jobinfo) { + debug3("step never got an allocation."); + return; + } + jobinfo = step_ptr->select_jobinfo->data; if (jobinfo && !IS_CLEANING_STARTED(jobinfo)) { jobinfo->cleaning |= CLEANING_STARTED; -- GitLab