From 3f0ae9fa7f08c33e1aab6aee64fd96cc5672a43b Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Fri, 4 Aug 2006 16:40:14 +0000
Subject: [PATCH] No need to note (update time of last communcation) for srun's
 response to job completion RPC.

---
 src/slurmctld/agent.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/slurmctld/agent.c b/src/slurmctld/agent.c
index 1599c4964f6..f97c8995093 100644
--- a/src/slurmctld/agent.c
+++ b/src/slurmctld/agent.c
@@ -542,15 +542,15 @@ static void _notify_slurmctld_jobs(agent_info_t *agent_ptr)
 		srun_timeout_msg_t *msg = *agent_ptr->msg_args_pptr;
 		job_id  = msg->job_id;
 		step_id = msg->step_id;
-	} else if (agent_ptr->msg_type == SRUN_NODE_FAIL) {
-		srun_node_fail_msg_t *msg = *agent_ptr->msg_args_pptr;
-		job_id  = msg->job_id;
-		step_id = msg->step_id;
 	} else if (agent_ptr->msg_type == RESPONSE_RESOURCE_ALLOCATION) {
 		resource_allocation_response_msg_t *msg =
 			*agent_ptr->msg_args_pptr;
 		job_id  = msg->job_id;
 		step_id = NO_VAL;
+	} else if (agent_ptr->msg_type == SRUN_JOB_COMPLETE) {
+		return;		/* no need to note srun response */
+	} else if (agent_ptr->msg_type == SRUN_NODE_FAIL) {
+		return;		/* no need to note srun response */
 	} else {
 		error("_notify_slurmctld_jobs invalid msg_type %u",
 			agent_ptr->msg_type);
-- 
GitLab