mllg / batchtools

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

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

Open MLopez-Ibanez opened 1 year ago

MLopez-Ibanez commented 1 year ago

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?

MLopez-Ibanez commented 1 year ago

OK, this seems to be more or less the same as issue #209 and the suggested work-around seems to be to create a new registry every time, which is not great.