mlr-org / mlr-org/batchtools

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

Open
#239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
184
Forks
53
Avg merge
7d 2h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open R/Logs.R at line 119 and inspect getLog() handling when the log file is unavailable. Reproduce or trace the missing-log path, then verify that it returns NULL and handles the condition without stopping execution; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
hpc
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.