ScheduleReplaced

data class ScheduleReplaced(val taskId: String, val at: Instant, val policy: ConflictPolicy, val current: WorkRequest) : MonitorEvent

A pre-existing scheduled request for this id was displaced by a new one. Emitted alongside (and immediately before) a fresh Scheduled. Not emitted when policy is ConflictPolicy.Keep and the existing request wins the race — that path is silent (the user-supplied request had no observable effect).

Constructors

Link copied to clipboard
constructor(taskId: String, at: Instant, policy: ConflictPolicy, current: WorkRequest)

Properties

Link copied to clipboard
open override val at: Instant

Wall-clock time the event was emitted.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val taskId: String

The task this event belongs to.