JobResult

sealed class JobResult<out O>(source)

Outcome a worker reports at the end of JabbitWorker.doWork.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Failure(val reason: String? = null) : JobResult<Nothing>

The job failed permanently and must not be retried.

Link copied to clipboard
data object Retry : JobResult<Nothing>

The job should run again later, after the backoff delay of its request.

Link copied to clipboard
data class Success<O>(val output: O) : JobResult<O>

The job finished successfully.