Skip to content

Job

Purpose

Manage job.

Methods

Binding name: p6.job


Method: String getStatus(String jobId)

Returns the status name of the job.


Method: String waitFor(String jobId)

Waits until the job has finished and returns the job status.

Examples

Reindexing tables:

p6.table.listAll().each {
    println "Reindexing table " + it
    def job = p6.table.updateIndexes(it)
    println p6.job.waitFor(job)
}