Neuron-PHP

WorkerStartedEvent
in package
implements IEvent

Event fired when a queue worker starts processing jobs.

This event is triggered when a worker begins its run loop and starts listening for jobs from the queue.

Use cases:

  • Monitor worker pool health and availability
  • Track worker uptime and operational status
  • Send notifications when workers start (deployment verification)
  • Log worker startup for debugging and audit trails
  • Update monitoring dashboards with active worker count
  • Trigger worker registration in service discovery systems

Table of Contents

Interfaces

IEvent
Core event interface for the Neuron event system.

Properties

$queues  : array<string|int, mixed>
$workerId  : string

Methods

__construct()  : mixed
getName()  : string

Properties

Methods

__construct()

public __construct(string $workerId, array<string|int, mixed> $queues) : mixed
Parameters
$workerId : string

Unique identifier for this worker instance

$queues : array<string|int, mixed>

Array of queue names this worker processes


        
On this page

Search results