Skip to content
GitLab
Menu
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
0f8ab9a6
Commit
0f8ab9a6
authored
Mar 16, 2021
by
Pape, David (FWCC) - 139658
Browse files
Clean up /tmp after job finishes
parent
dfa7c524
Pipeline
#63450
failed with stages
in 1 minute and 31 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/SlurmJob.cpp
View file @
0f8ab9a6
...
@@ -111,6 +111,8 @@ void SlurmJob::PrepareNewScript(std::filesystem::path oldScript) {
...
@@ -111,6 +111,8 @@ void SlurmJob::PrepareNewScript(std::filesystem::path oldScript) {
newScriptS
<<
shebang
<<
'\n'
;
newScriptS
<<
shebang
<<
'\n'
;
for
(
auto
setting
:
Settings
)
for
(
auto
setting
:
Settings
)
newScriptS
<<
"#SBATCH --"
<<
setting
.
first
<<
"="
<<
setting
.
second
<<
'\n'
;
newScriptS
<<
"#SBATCH --"
<<
setting
.
first
<<
"="
<<
setting
.
second
<<
'\n'
;
newScriptS
<<
"
\n
trap
\"
rm -rf /tmp/* || true
\"
EXIT
\n
"
newScriptS
<<
oldScriptS
.
rdbuf
();
newScriptS
<<
oldScriptS
.
rdbuf
();
oldScriptS
.
close
();
oldScriptS
.
close
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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