AttemptFailed

data class AttemptFailed(val taskId: String, val at: Instant, val attempt: Int, val reason: AttemptFailureReason) : MonitorEvent

An attempt failed in a way that is not the worker returning WorkResult.Failure: the OS expired the task, the factory threw, the worker threw an uncaught exception. The library converts these to WorkResult.Retry (or WorkResult.Failure on max-attempts exhaustion) internally; this event surfaces the original cause.

Constructors

Link copied to clipboard
constructor(taskId: String, at: Instant, attempt: Int, reason: AttemptFailureReason)

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.