showStatus {BatchJobs}R Documentation

Show status information about jobs.

Description

E.g.: How many there are, how many are done, any errors, etc.

Usage

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

Arguments

reg

[Registry]
Registry.

ids

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

errors

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

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.

Value

[list] List of absolute job numbers as printed by showStatus. Returned invisibly.

Examples

reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123)
f = function(x) x^2
batchMap(reg, f, 1:10)
submitJobs(reg)

# should show 10 submitted jobs, which are all done.
showStatus(reg)

[Package BatchJobs version 1.3 Index]