Submit jobs or chunks of jobs to batch system via cluster function.
If the internal submit cluster function completes successfully, the retries
counter is set back to 0 and the next job or chunk is submitted.
If the internal submit cluster function returns a fatal error, the submit process
is completely stopped and an exception is thrown.
If the internal submit cluster function returns a temporary error, the submit process
waits for a certain time, which is determined by calling the user-defined
wait
-function with the current retries
counter, the counter is
increased by 1 and the same job is submitted again. If max.retries
is
reached the function simply terminates.
Potential temporary submit warnings and errors are logged inside your file
directory in the file “submit.log”.
To keep track you can use tail -f [file.dir]/submit.log
in another
terminal.
submitJobs(reg, ids, resources = list(), wait, max.retries = 10L, chunks.as.arrayjobs = FALSE, job.delay = FALSE, progressbar = TRUE)
reg |
[ |
ids |
[ |
resources |
[ |
wait |
[ |
max.retries |
[ |
chunks.as.arrayjobs |
[ |
job.delay |
[ |
progressbar |
[ |
[integer
]. Vector of submitted job ids.
reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123) f = function(x) x^2 batchMap(reg, f, 1:10) submitJobs(reg) waitForJobs(reg) # Submit the 10 jobs again, now randomized into 2 chunks: chunked = chunk(getJobIds(reg), n.chunks = 2, shuffle = TRUE) submitJobs(reg, chunked)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.