Commit 0f8ab9a6 authored by Pape, David (FWCC) - 139658's avatar 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
......@@ -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();
......
Markdown is supported
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