From 33c881a13a2a0ed592e48b877e9192215775bdee Mon Sep 17 00:00:00 2001 From: Joachim Gabler Date: Mon, 6 Jan 2025 16:46:31 +0100 Subject: [PATCH] BF: CS-918 some job modifications done with qalter are not visible in qstat -j job_id // additional change for modifying command_args --- source/daemons/qmaster/sge_job_qmaster.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/daemons/qmaster/sge_job_qmaster.cc b/source/daemons/qmaster/sge_job_qmaster.cc index f9606eebf..df9850162 100644 --- a/source/daemons/qmaster/sge_job_qmaster.cc +++ b/source/daemons/qmaster/sge_job_qmaster.cc @@ -2629,6 +2629,7 @@ mod_job_attributes(const sge_gdi_packet_class_t *packet, lListElem *new_job, lLi if ((pos = lGetPosViaElem(jep, JB_qs_args, SGE_NO_ABORT)) >= 0) { DPRINTF("got new JB_qs_args\n"); lSetList(new_job, JB_qs_args, lCopyList("", lGetList(jep, JB_qs_args))); + *trigger |= MOD_EVENT; snprintf(SGE_EVENT, SGE_EVENT_SIZE, MSG_SGETEXT_MOD_JOBS_SU, MSG_JOB_QSARGS, sge_u32c(jobid)); answer_list_add(alpp, SGE_EVENT, STATUS_OK, ANSWER_QUALITY_INFO); } @@ -2636,8 +2637,8 @@ mod_job_attributes(const sge_gdi_packet_class_t *packet, lListElem *new_job, lLi /* ---- JB_job_args */ if ((pos = lGetPosViaElem(jep, JB_job_args, SGE_NO_ABORT)) >= 0) { DPRINTF("got new JB_job_args\n"); - lSetList(new_job, JB_job_args, - lCopyList("", lGetList(jep, JB_job_args))); + lSetList(new_job, JB_job_args, lCopyList("", lGetList(jep, JB_job_args))); + *trigger |= MOD_EVENT; snprintf(SGE_EVENT, SGE_EVENT_SIZE, MSG_SGETEXT_MOD_JOBS_SU, MSG_JOB_SCRIPTARGS, sge_u32c(jobid)); answer_list_add(alpp, SGE_EVENT, STATUS_OK, ANSWER_QUALITY_INFO); }