Verified Commit 432824d0 authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

Fix: Show placeholder state when Slurm is not reachable

parent 7a8378fe
Pipeline #77770 failed with stages
in 1 minute and 51 seconds
CMakeLists.txt.user
*.kdev4
build/
build*/
docs/source_code_doc/
......@@ -6,6 +6,7 @@
#include <iostream>
#include <regex>
#include <sstream>
#include <thread>
#include <vector>
#include "spdlog/spdlog.h"
......@@ -180,6 +181,8 @@ void SlurmJob::UpdateState() {
if (results.first != 0) {
SPDLOG_ERROR(results.second);
State = "_UNKNOWN_";
return;
}
std::istringstream issOutput(results.second);
......
......@@ -105,7 +105,7 @@ private:
"NODE_FAIL",
"SPECIAL_EXIT" // This can mean different things, depending on the setup.
};
static inline std::array<std::string, 15> InProgressStates = {
static inline std::array<std::string, 16> InProgressStates = {
"CONFIGURING",
"COMPLETING",
"PENDING",
......@@ -120,7 +120,8 @@ private:
"SIGNALING",
"STAGE_OUT",
"STOPPED",
"SUSPENDED"
"SUSPENDED",
"_UNKNOWN_" // Placeholder for when Slurm is not reachable
};
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment