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
$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
- $manager Factory
- $events Dispatcher
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
- $queues Collection
protected
dispatchEvents ( Collection $queues ) : void
Fire the monitoring events.
Parameters
- $queues Collection