AttributeIlluminate\Queue\Attributes\MaxExceptions
#[MaxExceptions]
Limite o número máximo de exceções que um job pode ter.
Disponível desde
Laravel 13.0
Aplicável em
class
Parâmetros
$maxExceptionsintNúmero máximo de exceções permitidas.
Uso prático
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\Attributes\MaxExceptions;
#[MaxExceptions(5)]
class ProcessInvoice implements ShouldQueue
{
public function handle(): void
{
//...
}
}