We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6fdd0f + 8ceabc9 commit 378612aCopy full SHA for 378612a
molgenis-compute-core/src/main/resources/templates/slurm/header_gaf.ftl
@@ -17,9 +17,12 @@ set -u
17
function errorExitandCleanUp()
18
{
19
echo "TRAPPED"
20
- printf "${taskId}\n" > /groups/umcg-gaf/tmp05/logs/${project}.failed
21
- tail -50 ${taskId}.err >> /groups/umcg-gaf/tmp05/logs/${project}.failed
22
- rm /groups/umcg-gaf/tmp05/tmp/${project}/*/tmp_${taskId}*
+ printf "${taskId}\n" > /groups/umcg-gaf/${tmpName}/logs/${project}.failed
+ if [ -f ${taskId}.err ]
+ then
23
+ tail -50 ${taskId}.err >> /groups/umcg-gaf/${tmpName}/logs/${project}.failed
24
+ fi
25
+ rm -rf /groups/umcg-gaf/${tmpName}/tmp/${project}/*/tmp_${taskId}*
26
}
27
28
declare MC_tmpFolder="tmpFolder"
0 commit comments