makeSubmitJobResult: Create a SubmitJobResult

View source: R/clusterFunctions.R

makeSubmitJobResultR Documentation

Create a SubmitJobResult


This function is only intended for use in your own cluster functions implementation.

Use this function in your implementation of makeClusterFunctions to create a return value for the submitJob function.


  log.file = NA_character_,
  msg = NA_character_



Launch status of job. 0 means success, codes between 1 and 100 are temporary errors and any error greater than 100 is a permanent failure.

Unique id of this job on batch system, as given by the batch system. Must be globally unique so that the job can be terminated using just this information. For array jobs, this may be a vector of length equal to the number of jobs in the array.


Log file. If NA, defaults to [job.hash].log. Some cluster functions set this for array jobs.


Optional error message in case status is not equal to 0. Default is “OK”, “TEMPERROR”, “ERROR”, depending on status.


[SubmitJobResult]. A list, containing status, and msg.

See Also

Other ClusterFunctionsHelper: cfBrewTemplate(), cfHandleUnknownSubmitError(), cfKillJob(), cfReadBrewTemplate(), makeClusterFunctions(), runOSCommand()

batchtools documentation built on April 20, 2023, 5:09 p.m.