Skip to content

Commit b1289f4

Browse files
committed
Handle FileNotFoundException
1 parent 5f02031 commit b1289f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cluster/src/org/labkey/cluster/pipeline/SlurmExecutionEngine.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.quartz.JobExecutionException;
2626

2727
import java.io.File;
28+
import java.io.FileNotFoundException;
2829
import java.io.FileWriter;
2930
import java.io.IOException;
3031
import java.io.PrintWriter;
@@ -324,6 +325,10 @@ else if (headerFound)
324325
{
325326
writer.println(info + ". Raw slurm value: " + maxRSS);
326327
}
328+
catch (FileNotFoundException e)
329+
{
330+
_log.error("Unable to find log file for job, " + job.getJobId() + ": " + sf.getFilePath());
331+
}
327332
}
328333
}
329334
}

0 commit comments

Comments
 (0)