WorkStarted

data class WorkStarted(val taskId: String, val at: Instant, val attempt: Int, val expectedAt: Instant?) : MonitorEvent

The platform fired the worker and execution is about to begin.

Parameters

attempt

0-based retry counter; 0 on the first invocation.

expectedAt

the time the task was supposed to start, if the library has a hint. May be null for platforms where the OS does not surface the scheduled run time (iOS BGTaskScheduler).

Constructors

Link copied to clipboard
constructor(taskId: String, at: Instant, attempt: Int, expectedAt: Instant?)

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.