TaskConfig

data class TaskConfig(val retry: Int? = 0, val backOffDelay: Int? = 0, val startDelay: Int? = 0, val timeout: Int? = null)

Constructors

Link copied to clipboard
constructor(retry: Int? = 0, backOffDelay: Int? = 0, startDelay: Int? = 0)
constructor(retry: Int? = 0, backOffDelay: Int? = 0, startDelay: Int? = 0, timeout: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val backOffDelay: Int? = 0

If set will add a delay of milli seconds when trying to rerun task after failure if retry is set

Link copied to clipboard
val retry: Int? = 0

If set will try to rerun the task if it fails with the set amount , Example retry = 0 , run the task once retry = 1, run the job first time if failed run again retry = 2, run the job first time if failed run again, if failed run one more time

Link copied to clipboard
val startDelay: Int? = 0

If set will delay starting the task with the set milli seconds

Link copied to clipboard
val timeout: Int? = null

If set will timeout the task job after the set milli seconds, if set retry too each try will use this timeout