showStatus

0th

Percentile

Retrieve or show status information about jobs.

E.g.: How many there are, how many are done, any errors, etc. showStatus displays on the console, getStatus returns an informative result without console output.

Usage
showStatus(reg, ids, run.and.exp = TRUE, errors = 10L)

getStatus(reg, ids, run.and.exp = TRUE)

Arguments
reg

[Registry] Registry.

ids

[integer] Ids of selected jobs. Default is all jobs.

run.and.exp

[logical(1)] Show running and expired jobs? Requires to list the job on the batch system. If not possible, because that cluster function is not avilable, this option is ignored anyway. Default is TRUE.

errors

[integer(1)] How many of the error messages should be displayed if any errors occured in the jobs? Default is 10.

Value

[list]. List of absolute job numbers. showStatus returns them invisibly.

Aliases
  • showStatus
  • getStatus
Examples
# NOT RUN {
reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123)
f = function(x) x^2
batchMap(reg, f, 1:10)
submitJobs(reg)
waitForJobs(reg)

# should show 10 submitted jobs, which are all done.
showStatus(reg)
# }
Documentation reproduced from package BatchJobs, version 1.7, License: BSD_2_clause + file LICENSE

Community examples

Looks like there are no examples yet.