JobInfo

data class JobInfo(source)

Snapshot of an enqueued job.

Finished jobs are kept for a while so their outcome can still be read, then pruned.

Properties

Link copied to clipboard

Why the job failed, when it failed and the worker said why.

Link copied to clipboard
val id: JobId

Identifier of the job.

Link copied to clipboard

Epoch milliseconds of the next planned run, or null when no run is planned.

Link copied to clipboard

What the last JobExecution.setProgress call reported, or null when the job never reported anything or has already finished.

Link copied to clipboard

Number of times the job has been started, starting at zero for the first attempt.

Link copied to clipboard

Current state.

Link copied to clipboard

Tags attached to the request.

Link copied to clipboard

Name of the JobType the job belongs to.

Link copied to clipboard

Unique name the job was enqueued under, or null for jobs enqueued without one.

Functions

Link copied to clipboard
fun <O> JobInfo.output(type: JobType<*, O>): O?

Reads what the job produced, or null when it has not succeeded yet.