TIP 04 / 06

Back Off Between Retries of Transient Failures.

Immediate retries can overload a service that is already failing. Set a bounded retry count and increase the delay between attempts for temporary network or provider errors:

code
public int $tries = 5;

public function backoff(): array
{
    return [1, 5, 15, 30];
}

Retries do not fix permanent errors such as invalid input. Make jobs safe to run more than once, and send exhausted jobs to the failed-job workflow for inspection.