Closed smilesun closed 6 years ago
This has now completely changed. You automatically enter a read-only mode if you change the registry in the background. My suggestions for running stuff on the same system:
loadRegistry(..., writeable = FALSE)
to monitor, inspect logs, reduce partial results, ...If you need to parallelize on multiple systems, I'd do as follows:
batchtools:::mergeRegistries()
locally to merge registries (https://github.com/mllg/batchtools/blob/master/R/mergeRegistries.R). This function is not well tested yet, you might need to fix smaller stuff.If you add new jobs or redefine jobs after 2, registries will diverge.
For instance, I am doing a very large project, since there are maybe 40 algorithms and 4 problems and I cant wait until I finish all the code to submit my jobs. So I do it in small piece and once I finish a block of my code, I copy the folder to a new folder(actually I have several branches and each branch has a folder) and submit the new added algorithms.
Not sure if this is a good way to continuously work on a project ? and how to merge these different folders? Since I am always afraid that once I rerun the program, already existed results will be overwritten.
I have to copy a folder, rename it and load the result to submit the new algorithm job or just resubmit those expired jobs, but since i CHANGED the folder name, I got
Is it a good habit just to hack it with reg$writable = T ?