mlr-org / mlr-org/batchtools

WISH: Clarify the 'Work dir does not exist' error message

Open
#260 2 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

With future.batchtools and other wrappers, it become a bit tricky to track down where errors are coming from when running in batch mode. For instance, I got some:

Error : BatchtoolsError in BatchtoolsFuture ('future_lapply-1'): 'Work dir does not exist'

I wasn't sure if that was from the scheduler or batchtools, but it turns out it's from here:

https://github.com/mllg/batchtools/blob/1001440ab14e697a28c9d901bc976c7d5b9e404b/R/doJobCollection.R#L84-L86

Would you mind updating to something like:

error("Working directory (%s) for the batchtools registry does not exist", jc$work.dir)

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

Start with R/doJobCollection.R at the linked lines 84-86, where the uninformative work-directory error is raised. Update the message so it identifies the missing working directory and batchtools registry, then verify that the resulting BatchtoolsError reports the directory path clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
hpc
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.