mlr-org / mlr-org/batchtools

calling `batchMap` + `submitJob` in a loop triggers "Registry must be empty" error

Open
#295 1 comment 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

I would like to call batchMap + submitJobs in a loop to send a bunch of jobs to the cluster. Then, wait for everything to finish. However, I trigger this error:

https://github.com/mllg/batchtools/blob/1196047ed5115d54bde2923848c1f3ec11fda6d2/R/batchMap.R#L61C1-L62C35

Is this simply not possible?

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/batchMap.R at the linked lines and reproduce the batchMap plus submitJobs loop against a cluster workflow. Trace when the registry is checked and how jobs are waited on. Done means establishing whether repeated submissions are supported and documenting or correcting the behavior so the outcome is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
hpc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.