RetryableJob
extends
RetryableJobInterface
in
Retryable Job Interface.
Tags
Table of Contents
Methods
- canRetry() : bool
- execute() : void|mixed
- getTtr() : int
Methods
canRetry()
public
canRetry(int $attempt, Exception|Throwable $error) : bool
Parameters
- $attempt : int
-
number
- $error : Exception|Throwable
-
from last execute of the job
Return values
boolexecute()
public
execute(Queue $queue) : void|mixed
Parameters
- $queue : Queue
-
which pushed and is handling the job
Return values
void|mixed —result of the job execution
getTtr()
public
getTtr() : int
Return values
int —time to reserve in seconds