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

Merge branch 'clean-tmp-on-node' into 'master'

Clean up /tmp after job finishes

See merge request !7
parents dfa7c524 036d647b
Pipeline #63453 passed with stages
in 3 minutes and 44 seconds
......@@ -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 << "\ntrap \"rm -rf /tmp/* || true\" EXIT\n";
newScriptS << oldScriptS.rdbuf();
oldScriptS.close();
......
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