| cfKillJob {batchtools} | R Documentation |
Cluster Functions Helper to Kill Batch Jobs
Description
This function is only intended for use in your own cluster functions implementation.
Calls the OS command to kill a job via system like this: “cmd batch.job.id”. If the
command returns an exit code > 0, the command is repeated after a 1 second sleep
max.tries-1 times. If the command failed in all tries, an error is generated.
Usage
cfKillJob(
reg,
cmd,
args = character(0L),
max.tries = 3L,
nodename = "localhost"
)
Arguments
reg |
[ |
cmd |
[ |
args |
[ |
max.tries |
[ |
nodename |
[ |
Value
TRUE on success. An exception is raised otherwise.
See Also
Other ClusterFunctionsHelper:
cfBrewTemplate(),
cfHandleUnknownSubmitError(),
cfReadBrewTemplate(),
makeClusterFunctions(),
makeSubmitJobResult(),
runOSCommand()