NewJob

data class NewJob(val kind: String, val payload: String, val payloadVersion: Int = 1, val queue: QueueName = QueueName.DEFAULT, val runAt: Instant, val uniqueKey: String? = null, val scheduleId: String? = null)

A job to persist. payload is the serialized form (JSON by default); payloadVersion is the envelope version, present from v1 so wire-format evolution never needs a data migration.

Constructors

Link copied to clipboard
constructor(kind: String, payload: String, payloadVersion: Int = 1, queue: QueueName = QueueName.DEFAULT, runAt: Instant, uniqueKey: String? = null, scheduleId: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

When the job becomes due. Now or past means immediately eligible.

Link copied to clipboard

Id of the recurring schedule that emitted this run; null for directly enqueued jobs.

Link copied to clipboard