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
Properties
Link copied to clipboard
Link copied to clipboard
Id of the recurring schedule that emitted this run; null for directly enqueued jobs.
Link copied to clipboard
See com.eventslooped.klokka.JobOptions.uniqueKey for the dedup contract.