mllg / batchtools

Tools for computation on batch systems
https://mllg.github.io/batchtools/
GNU Lesser General Public License v3.0
170 stars 51 forks source link

getLog() should not return an error if the log file is not available #239

Open ryananeff opened 4 years ago

ryananeff commented 4 years ago

This can happen if the HPC scheduler kills the jobs before logs can be written, or if the HPC scheduler does not report the job as in the system when in fact it is running. getLog() should return NULL if no log is available and perhaps show a warning, not an error which stops execution.

https://github.com/mllg/batchtools/blob/ed75f6951a1603b2899b24ffb18b045190e8f863/R/Logs.R#L119