makeClusterFunctions(name, submitJob, killJob = NULL, listJobsQueued = NULL,
listJobsRunning = NULL, array.var = NA_character_, store.job = FALSE,
hooks = list())
character(1)
]
Name of cluster functions.function(reg, jc, ...)
]
Function to submit new jobs. Must return a SubmitJobResult
object.
The arguments are reg
(Registry
) and jobs
(JobCollection
).function(reg, batch.id)
]
Function to kill a job on the batch system. Make sure that you definitely kill the job! Return
value is currently ignored. Must have the arguments reg
(Registry
) and
batch.id
(character(1)
as returned by submitJob
).
Note that there is a helper function cfKillJob
to repeatedly try to kill jobs.
Set killJob
to NULL
if killing jobs cannot be supported.function(reg)
]
List all queued jobs on the batch system for the current user.
Must return an character vector of batch ids, same format as they
are returned by submitJob
.
Set listJobsQueued
to NULL
if listing of queued jobs is not supported.function(reg)
]
List all running jobs on the batch system for the current user.
Must return an character vector of batch ids, same format as they
are returned by submitJob
. It does not matter if you return a few job ids too many (e.g.
all for the current user instead of all for the current registry), but you have to include all
relevant ones. Must have the argument are reg
(Registry
).
Set listJobsRunning
to NULL
if listing of running jobs is not supported.character(1)
]
Name of the environment variable set by the scheduler to identify IDs of job arrays.
Default is NA
for no array support.logical(1)
]
Flag to indicate that the cluster function implementation of submitJob
can not directly handle JobCollection
objects.
If set to FALSE
, the JobCollection
is serialized to the file system before submitting the job.list
]
Named list of functions which will we called on certain events like “pre.submit” or “post.sync”.
See Hooks.makeClusterFunctionsDocker
,
makeClusterFunctionsInteractive
,
makeClusterFunctionsLSF
,
makeClusterFunctionsMulticore
,
makeClusterFunctionsOpenLava
,
makeClusterFunctionsSGE
,
makeClusterFunctionsSSH
,
makeClusterFunctionsSlurm
,
makeClusterFunctionsSocket
,
makeClusterFunctionsTorque
Other ClusterFunctionsHelper: cfBrewTemplate
,
cfHandleUnknownSubmitError
,
cfKillJob
,
cfReadBrewTemplate
,
makeSubmitJobResult
,
runOSCommand