Skip to content

Commit c0f8860

Browse files
committed
allow LSF commands via ssh
1 parent 63a6f81 commit c0f8860

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: batchtools
22
Title: Tools for Computation on Batch Systems
3-
Version: 0.9.16
3+
Version: 0.9.15.9000
44
Authors@R: c(
55
person("Michel", "Lang", NULL, "michellang@gmail.com",
66
role = c("cre", "aut"), comment = c(ORCID = "0000-0001-9754-0393")),

R/clusterFunctionsLSF.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#' @return [\code{\link{ClusterFunctions}}].
2424
#' @family ClusterFunctions
2525
#' @export
26-
makeClusterFunctionsLSF = function(template = "lsf", scheduler.latency = 1, fs.latency = 65) { # nocov start
26+
makeClusterFunctionsLSF = function(template = "lsf", nodename = "localhost", scheduler.latency = 1, fs.latency = 65) { # nocov start
2727
template = findTemplateFile(template)
2828
if (testScalarNA(template))
2929
stopf("Argument 'template' (=\"%s\") must point to a readable template file or contain the template itself as string (containing at least one newline)", template)
@@ -38,7 +38,7 @@ makeClusterFunctionsLSF = function(template = "lsf", scheduler.latency = 1, fs.l
3838
assertRegistry(reg, writeable = TRUE)
3939
assertClass(jc, "JobCollection")
4040
outfile = cfBrewTemplate(reg, template, jc)
41-
res = runOSCommand("bsub", stdin = outfile)
41+
res = runOSCommand("bsub", stdin = outfile, nodename = nodename)
4242

4343
if (res$exit.code > 0L) {
4444
cfHandleUnknownSubmitError("bsub", res$exit.code, res$output)
@@ -50,7 +50,7 @@ makeClusterFunctionsLSF = function(template = "lsf", scheduler.latency = 1, fs.l
5050

5151
listJobs = function(reg, args) {
5252
assertRegistry(reg, writeable = FALSE)
53-
res = runOSCommand("bjobs", args)
53+
res = runOSCommand("bjobs", args, nodename = nodename)
5454
if (res$exit.code > 0L) {
5555
if (res$exit.code == 255L || any(stri_detect_regex(res$output, "No (unfinished|pending|running) job found")))
5656
return(character(0L))

0 commit comments

Comments
 (0)