getNextJob.JobBatch: Gets next non-locked job

Description Usage Arguments Value Author(s) See Also

Description

Gets next non-locked job and locks it.

This method is called by *getRunAndFinishJob().

Usage

1
2
## S3 method for class 'JobBatch'
getNextJob(this, which=c("first", "last", "random"), ..., verbose=FALSE)

Arguments

which

A character string. The jobs are sorted in lexicographical order by the directory names. If "first", then the first non-locked job is retrieved. If "last", then the last non-locked job is retrieved. If "ranodm", a random non-locked job is retrieved.

...

Arguments, except jobPath and verbose passed to the constructor of Job.

verbose

If TRUE, extra information is displayed. The created Job object gets this verbose level too.

Value

Returns a Job after first locking it. If no available job was found, NULL is silently returned.

Author(s)

Henrik Bengtsson

See Also

For more information see JobBatch.


HenrikBengtsson/R.batch documentation built on May 6, 2019, 11:52 p.m.