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

Merge branch '18-hemera-tagged-job-doesn-t-start' into 'master'

Resolve "Hemera-tagged job doesn't start"

Closes #18

See merge request !9
parents 7a8378fe 1f11740b
Pipeline #77774 passed with stages
in 4 minutes and 6 seconds
CMakeLists.txt.user
*.kdev4
build/
build*/
docs/source_code_doc/
......@@ -34,6 +34,7 @@ test_program:
script:
- cd build
- make coverage
allow_failure: true
artifacts:
paths:
- build/coverage
......
......@@ -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
};
};
......
Supports Markdown
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