Neuron-PHP

SchedulerJobTriggeredEvent
in package
implements IEvent

Event fired when the scheduler determines a scheduled job is due to run.

This event is triggered when the scheduler's cron expression evaluates to true and the job is either executed directly or dispatched to a queue.

Use cases:

  • Audit trail of scheduled job executions
  • Track when scheduled jobs run for compliance
  • Monitor scheduler health and reliability
  • Verify scheduled jobs are running on expected schedule
  • Send notifications when critical scheduled jobs trigger
  • Debug scheduling issues and cron expressions

Table of Contents

Interfaces

IEvent
Core event interface for the Neuron event system.

Properties

$jobClass  : string
$jobName  : string
$queue  : string|null
$schedule  : string

Methods

__construct()  : mixed
getName()  : string

Properties

Methods

__construct()

public __construct(string $jobName, string $jobClass, string $schedule, string|null $queue) : mixed
Parameters
$jobName : string

Name of the scheduled job

$jobClass : string

Fully qualified class name of the job

$schedule : string

Cron expression for this job

$queue : string|null

Queue name if job is queued, null if run directly


        
On this page

Search results