RetryableJob
Opt-in per-job retry policy.
A Job that does not implement this gets the config-level defaults instead (queue.retry.max_attempts, queue.retry.backoff_seconds) — see JobExecutor.
Synopsis
Section titled “Synopsis”interface RetryableJob extends Job
| Implements | Job |
| Source | RetryableJob.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
backoffSeconds(int $attempt): int | Delay before the given (1-based) retry attempt. |
maxAttempts(): int | Total attempts allowed, including the first. |
backoffSeconds()
Section titled “backoffSeconds()”abstract public function backoffSeconds(int $attempt): int
Delay before the given (1-based) retry attempt.
| Parameter | Type | Description |
|---|---|---|
$attempt | int |
Returns int
maxAttempts()
Section titled “maxAttempts()”abstract public function maxAttempts(): int
Total attempts allowed, including the first.
Returns int
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
handle() | Job | Performs the job’s work. |