JobMaxAttemptsReachedEvent
in package
implements
IEvent
Event fired when a job exhausts all retry attempts and fails permanently.
This event is triggered when a job has failed and reached the maximum number of retry attempts configured in the queue system. The job is moved to the failed jobs table/store and will not be retried automatically.
Use cases:
- Send critical alerts requiring immediate human intervention
- Log permanent failures for post-mortem analysis
- Trigger manual review workflows
- Create tickets in issue tracking systems
- Update business processes that depend on the job
- Track job reliability and identify problematic jobs
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
- $arguments : array<string|int, mixed>
- $exception : Throwable
- $jobClass : string
- $maxAttempts : int
- $queue : string
Methods
- __construct() : mixed
- getName() : string
Properties
$arguments read-only
public
array<string|int, mixed>
$arguments
$exception read-only
public
Throwable
$exception
$jobClass read-only
public
string
$jobClass
$maxAttempts read-only
public
int
$maxAttempts
$queue read-only
public
string
$queue
Methods
__construct()
public
__construct(string $jobClass, array<string|int, mixed> $arguments, string $queue, Throwable $exception, int $maxAttempts) : mixed
Parameters
- $jobClass : string
-
Fully qualified class name of the job
- $arguments : array<string|int, mixed>
-
Arguments passed to the job
- $queue : string
-
Queue name where job failed
- $exception : Throwable
-
The final exception that caused permanent failure
- $maxAttempts : int
-
Maximum number of attempts allowed
getName()
public
getName() : string