Neuron-PHP

JobProcessedEvent
in package
implements IEvent

Event fired when a job completes successfully.

This event is triggered after a job's run() method completes without throwing an exception, indicating successful execution.

Use cases:

  • Track job completion times and performance metrics
  • Calculate job success rates and reliability statistics
  • Trigger dependent jobs or workflows
  • Log successful job executions for audit trails
  • Update job status in monitoring dashboards
  • Send notifications when critical jobs complete

Table of Contents

Interfaces

IEvent
Core event interface for the Neuron event system.

Properties

$arguments  : array<string|int, mixed>
$executionTime  : float
$jobClass  : string
$queue  : string

Methods

__construct()  : mixed
getName()  : string

Properties

Methods

__construct()

public __construct(string $jobClass, array<string|int, mixed> $arguments, string $queue, float $executionTime) : 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 was processed

$executionTime : float

Execution time in seconds


        
On this page

Search results