In the case where we are unable to get the job status from LSF, we resort to checking the log file for completion status. However, the current process reads the entire log file into memory. This can become problematic if the log file is very large (which can happen depending on the program being run).
This PR uses tail to get the LSF job summary from the bottom of the file.
In the case where we are unable to get the job status from LSF, we resort to checking the log file for completion status. However, the current process reads the entire log file into memory. This can become problematic if the log file is very large (which can happen depending on the program being run).
This PR uses
tail
to get the LSF job summary from the bottom of the file.