WorkCompleted

data class WorkCompleted(val taskId: String, val at: Instant, val attempt: Int, val result: WorkResult, val runtime: Duration) : MonitorEvent

The worker's BackgroundWorker.execute returned (regardless of WorkResult). runtime is wall-clock duration measured from the paired WorkStarted.

Constructors

Link copied to clipboard
constructor(taskId: String, at: Instant, attempt: Int, result: WorkResult, runtime: Duration)

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
Link copied to clipboard
open override val taskId: String

The task this event belongs to.