From d207e4d276a982bbfa17d8280fb4146d89dee98f Mon Sep 17 00:00:00 2001 From: Joachim Gabler Date: Thu, 12 Sep 2024 15:27:35 +0200 Subject: [PATCH] BF: CS-574 information about job requests gets lost when restarting sge_qmaster --- source/libs/spool/sge_spooling_utilities.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/libs/spool/sge_spooling_utilities.cc b/source/libs/spool/sge_spooling_utilities.cc index ab778eb16..7263a2f73 100644 --- a/source/libs/spool/sge_spooling_utilities.cc +++ b/source/libs/spool/sge_spooling_utilities.cc @@ -55,6 +55,7 @@ #include "sgeobj/sge_cqueue.h" #include "sgeobj/sge_conf.h" #include "sgeobj/sge_schedd_conf.h" +#include "sgeobj/sge_job.h" #include "sgeobj/sge_host.h" #include "sgeobj/sge_pe.h" #include "sgeobj/sge_qinstance.h" @@ -514,7 +515,17 @@ bool spool_default_validate_func(lList **answer_list, case SGE_TYPE_PROJECT: case SGE_TYPE_SHARETREE: case SGE_TYPE_SCHEDD_CONF: + break; case SGE_TYPE_JOB: + // fill in non spooled fields, see also code for SGE_TYPE_EXECHOST + lListElem *jrs; + for_each_rw (jrs, lGetList(object, JB_request_set_list)) { + centry_list_fill_request(lGetListRW(jrs, JRS_hard_resource_list), nullptr, master_centry_list, true, + false, true); + centry_list_fill_request(lGetListRW(jrs, JRS_soft_resource_list), nullptr, master_centry_list, true, + false, true); + } + break; default: break; }