Package wisp. task
Types
Link copied to clipboard
class RepeatedTask @JvmOverloads constructor(name: String, meterRegistry: MeterRegistry, repeatedTaskConfig: RepeatedTaskConfig, retryPolicy: suspend RetryFailure<Throwable>.() -> RetryInstruction, taskConfig: TaskConfig, task: (name: String, taskConfig: TaskConfig) -> Status)
Content copied to clipboard
A RepeatedTask runs a repeated task at the user controlled rate.
Link copied to clipboard
data class RepeatedTaskConfig @JvmOverloads constructor(timeBetweenRunsMs: Long, initialDelayMs: Long, defaultJitterMs: Long, defaultMaxDelayMs: Long) : Config
Content copied to clipboard
Link copied to clipboard
class RepeatedTaskManager @JvmOverloads constructor(meterRegistry: MeterRegistry)
Content copied to clipboard
Basic management of repeated tasks.
Link copied to clipboard
Metrics for repeated tasks:
Link copied to clipboard
Config to pass to the task. Extend this to pass in anything else your task may need.