-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for controlling the submission rate of jobs #14
Comments
For the record: The future.batchtools framework creates one batchtools registry per future. Because of this, there will only be a single job submitted via So, by the current future.batchtools design, it needs to roll it's own "sleep-on-submission" mechanism. |
The plan(batchtools_sge, scheduler.latency = 10.0) will sleep 10.0 seconds after submitting a job to the scheduler. The > batchtools::submitJobs
function (ids = NULL, resources = list(), sleep = NULL, reg = getDefaultRegistry())
{
assertRegistry(reg, writeable = TRUE, sync = TRUE)
...
Sys.sleep(reg$cluster.functions$scheduler.latency)
runHook(reg, "post.submit")
return(invisible(ids))
} |
Add support for controlling the submission rate of jobs, by exposing the
sleep
argument ofbatchtools::submitJobs()
in one way or the other, e.g.plan(batchtools_slurm, sleep = 5)
for 5 seconds between each job submission.It's possible that this should/could be implemented in the Future API (futureverse/future#172) and if so, then maybe the default should be controllable via
?future.options
.Related to Issue #13.
The text was updated successfully, but these errors were encountered: