Failed

data class Failed(val throwable: Throwable, val retryCount: Int = 0, val willRetry: Boolean = false) : TaskState

Task failed with an exception.

Parameters

throwable

The exception that caused the failure.

retryCount

How many times this task has already been retried.

willRetry

True if the task will be automatically retried per its RetryPolicy.

Constructors

Link copied to clipboard
constructor(throwable: Throwable, retryCount: Int = 0, willRetry: Boolean = false)

Properties

Link copied to clipboard

True if the task is currently active (Scheduled or Running).

Link copied to clipboard

True if the task is in a terminal state (Success, Failed without retry, Cancelled, or TimedOut).

Link copied to clipboard
val retryCount: Int = 0
Link copied to clipboard
Link copied to clipboard
val willRetry: Boolean = false