class Illuminate / Queue / Console / MonitorCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.

MonitorCommand

Extends

Properties

protected

$signature string

The console command name.

Default: 'queue:monitor {queues : The names of the queues to monitor} {--max=1000 : The maximum number of jobs that can be on the queue before an event is dispatched}'
protected

$description string

The console command description.

Default: 'Monitor the size of the specified queues'
protected

$manager Factory

The queue manager instance.

Default: null
protected

$events Dispatcher

The events dispatcher instance.

Default: null
protected

$headers string[]

The table headers for the command.

Default: array

Methods

public

__construct ( Factory $manager , Dispatcher $events ) : void

Create a new queue listen command.

Parameters

public

handle ( ) : void

Execute the console command.

protected

parseQueues ( $queues ) : Collection

Parse the queues into an array of the connections and queues.

Parameters

  • $queues string
protected

displaySizes ( Collection $queues ) : void

Display the failed jobs in the console.

Parameters

protected

dispatchEvents ( Collection $queues ) : void

Fire the monitoring events.

Parameters