Skip to content
Snippets Groups Projects
Commit 3d4d2fc2 authored by Moe Jette's avatar Moe Jette
Browse files

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.
parent b6c315b1
No related branches found
No related tags found
No related merge requests found
...@@ -582,7 +582,7 @@ static void *_thread_per_node_rpc(void *args) ...@@ -582,7 +582,7 @@ static void *_thread_per_node_rpc(void *args)
slurm_rc_msg = (return_code_msg_t *) response_msg->data; slurm_rc_msg = (return_code_msg_t *) response_msg->data;
rc = slurm_rc_msg->return_code; rc = slurm_rc_msg->return_code;
slurm_free_return_code_msg(slurm_rc_msg); slurm_free_return_code_msg(slurm_rc_msg);
if (rc == 0) { if (rc == SLURM_SUCCESS) {
debug3("agent processed RPC to node %s", debug3("agent processed RPC to node %s",
thread_ptr->node_name); thread_ptr->node_name);
thread_state = DSH_DONE; thread_state = DSH_DONE;
...@@ -594,6 +594,11 @@ static void *_thread_per_node_rpc(void *args) ...@@ -594,6 +594,11 @@ static void *_thread_per_node_rpc(void *args)
error("Prolog failure on host %s, setting DOWN", error("Prolog failure on host %s, setting DOWN",
thread_ptr->node_name); thread_ptr->node_name);
thread_state = DSH_FAILED; 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 { } else {
error("agent error from host %s: %s", error("agent error from host %s: %s",
thread_ptr->node_name, thread_ptr->node_name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment