From 3d4d2fc2dbce7fa3cdd2a90de9a529cd830b2af1 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 14 Mar 2003 18:39:36 +0000 Subject: [PATCH] slurmctld agent treats "INVALID_JOBID" as warning, not fatal condition. This would occur for example if we killed a job that never started any steps on a node. --- src/slurmctld/agent.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/slurmctld/agent.c b/src/slurmctld/agent.c index 7b77d5fe703..6cbc81c6402 100644 --- a/src/slurmctld/agent.c +++ b/src/slurmctld/agent.c @@ -582,7 +582,7 @@ static void *_thread_per_node_rpc(void *args) slurm_rc_msg = (return_code_msg_t *) response_msg->data; rc = slurm_rc_msg->return_code; slurm_free_return_code_msg(slurm_rc_msg); - if (rc == 0) { + if (rc == SLURM_SUCCESS) { debug3("agent processed RPC to node %s", thread_ptr->node_name); thread_state = DSH_DONE; @@ -594,6 +594,11 @@ static void *_thread_per_node_rpc(void *args) error("Prolog failure on host %s, setting DOWN", thread_ptr->node_name); thread_state = DSH_FAILED; + } else if (rc == ESLURM_INVALID_JOB_ID) { + /* Not indicative of a real error */ + debug2("agent processed RPC to node %s, error %s", + thread_ptr->node_name, "Invalid Job Id"); + thread_state = DSH_DONE; } else { error("agent error from host %s: %s", thread_ptr->node_name, -- GitLab