Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FWCC
GitLab HPC Driver
Commits
432824d0
Verified
Commit
432824d0
authored
Jun 18, 2021
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
432824d0
CMakeLists.txt.user
*.kdev4
build/
build
*
/
docs/source_code_doc/
src/SlurmJob.cpp
View file @
432824d0
...
...
@@ -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
);
...
...
src/SlurmJob.h
View file @
432824d0
...
...
@@ -105,7 +105,7 @@ private:
"NODE_FAIL"
,
"SPECIAL_EXIT"
// This can mean different things, depending on the setup.
};
static
inline
std
::
array
<
std
::
string
,
1
5
>
InProgressStates
=
{
static
inline
std
::
array
<
std
::
string
,
1
6
>
InProgressStates
=
{
"CONFIGURING"
,
"COMPLETING"
,
"PENDING"
,
...
...
@@ -120,7 +120,8 @@ private:
"SIGNALING"
,
"STAGE_OUT"
,
"STOPPED"
,
"SUSPENDED"
"SUSPENDED"
,
"_UNKNOWN_"
// Placeholder for when Slurm is not reachable
};
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment