File: makeSubmitJobResult.Rd

package info (click to toggle)
r-cran-batchtools 0.9.15%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,416 kB
  • sloc: ansic: 172; sh: 156; makefile: 2
file content (52 lines) | stat: -rw-r--r-- 1,765 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clusterFunctions.R
\name{makeSubmitJobResult}
\alias{makeSubmitJobResult}
\alias{SubmitJobResult}
\title{Create a SubmitJobResult}
\usage{
makeSubmitJobResult(
  status,
  batch.id,
  log.file = NA_character_,
  msg = NA_character_
)
}
\arguments{
\item{status}{[\code{integer(1)}]\cr
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.}

\item{batch.id}{[\code{character()}]\cr
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.}

\item{log.file}{[\code{character()}]\cr
Log file. If \code{NA}, defaults to \code{[job.hash].log}.
Some cluster functions set this for array jobs.}

\item{msg}{[\code{character(1)}]\cr
Optional error message in case \code{status} is not equal to 0. Default is \dQuote{OK},
\dQuote{TEMPERROR}, \dQuote{ERROR}, depending on \code{status}.}
}
\value{
[\code{\link{SubmitJobResult}}]. A list, containing
  \code{status}, \code{batch.id} and \code{msg}.
}
\description{
This function is only intended for use in your own cluster functions implementation.

Use this function in your implementation of \code{\link{makeClusterFunctions}} to create a return
value for the \code{submitJob} function.
}
\seealso{
Other ClusterFunctionsHelper: 
\code{\link{cfBrewTemplate}()},
\code{\link{cfHandleUnknownSubmitError}()},
\code{\link{cfKillJob}()},
\code{\link{cfReadBrewTemplate}()},
\code{\link{makeClusterFunctions}()},
\code{\link{runOSCommand}()}
}
\concept{ClusterFunctionsHelper}