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
036d647b
Commit
036d647b
authored
Mar 16, 2021
by
Pape, David (FWCC) - 139658
Browse files
Clean up /tmp after job finishes
parent
dfa7c524
Pipeline
#63452
passed with stages
in 2 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/SlurmJob.cpp
View file @
036d647b
...
...
@@ -111,6 +111,8 @@ void SlurmJob::PrepareNewScript(std::filesystem::path oldScript) {
newScriptS
<<
shebang
<<
'\n'
;
for
(
auto
setting
:
Settings
)
newScriptS
<<
"#SBATCH --"
<<
setting
.
first
<<
"="
<<
setting
.
second
<<
'\n'
;
newScriptS
<<
"
\n
trap
\"
rm -rf /tmp/* || true
\"
EXIT
\n
"
;
newScriptS
<<
oldScriptS
.
rdbuf
();
oldScriptS
.
close
();
...
...
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