-
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
config for batchtools_sge? #26
Comments
A couple options I use:
|
How do you provide defaults for the variables in the template file? I'm using a template that includes activating a conda environment:
...and I'd like to set defaults for
|
From revisiting this section of the README, I think I understand a little more. I am also trying to use the #!/bin/bash
#$ -cwd
#$ -j y
#$ -o <%= log.file %>
#$ -V
#$ -N <%= job.name %>
#$ -pe smp <%= resources[["slots"]] %>
Rscript -e 'batchtools::doJobCollection("<%= uri %>")'
exit 0 and my script library(future.batchtools)
future::plan(batchtools_sge(template = "sge_batchtools.tmpl"))
future(system2("hostname")) which gives an error: $ Rscript run.R
Loading required package: future
Error: Fatal error occurred: 101. Command 'qsub' produced exit code 2. Output: 'Unable to read script file because of error: ERROR! -pe option must have range as 2nd argument'
Execution halted But when I replace Related: futureverse/future#181, futureverse/future#263, ropensci/drake#169. |
Don't know SGE well enough, so I could be wrong, but I think you wanna specify parallel environment "smp" (symmetric multiprocessing) as in |
My bad - I somehow missed that you do indeed specify |
Found the problem in #26 (comment): my library(future.batchtools)
future::plan(batchtools_sge(template = "sge_batchtools.tmpl"))
future(system2("hostname"), resources = list(slots = 2)) As desired, I saw a short-lived job with 2 slots on the cluster. |
At least with the configuration that I have list above, I get no output from failed jobs. Moreover, it's not clear where the qsub job log file is, given that it's just set as Is there a good way to troubleshoot failed jobs? Preferably, I would like a function to print the stderr/stdout from each job and the |
Still a problem. Also, it's not clear what variables are available in the template. I know of |
I'd like to redirect this question/ask/request to the batchtools package. I agree that {future.batchtools} might be able to improve it's documentation on this but I want to minimize any type of redundacy here and thereby the risk of falling out of sync with {batchtools}; {batchtools} is in charge on how things work below the future layer. |
Sorry if this is in the docs and I can't find it, but is there a way to specify default resources for the template? When just using
batchtools
, default resources can be set with a~/.batchtools.conf.R
file. However, this file doesn't seem to work withfuture.batchtools::plan()
.The text was updated successfully, but these errors were encountered: