recurring

fun <T> recurring(id: String, type: JobType<T>, payload: T, schedule: Schedule, misfire: MisfirePolicy = MisfirePolicy.FireOnce, misfireThreshold: Duration = 1.minutes, overlap: OverlapPolicy = OverlapPolicy.Allow, queue: QueueName? = null)

Declares a recurring schedule; see KlokkaRuntime.recurring for the semantics of every parameter. Declared here so the schedule exists before the runtime starts, which is when schedules are registered with the store.


fun recurring(id: String, schedule: Schedule, misfire: MisfirePolicy = MisfirePolicy.FireOnce, misfireThreshold: Duration = 1.minutes, overlap: OverlapPolicy = OverlapPolicy.Allow, queue: QueueName? = null, block: suspend JobContext.() -> Unit)

The zero-payload convenience form: declares the schedule AND binds block as the handler in one call. The schedule id doubles as the job kind, so it shares the kind namespace and character rules and must not collide with a kind bound via handle. Graduating to the full form (a JobType, a payload, a standalone handler) changes the descriptor, not the enqueue model.