class
Illuminate
/
Queue
/
Console
/
MonitorCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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'
Methods
public
__construct ( Factory $manager , Dispatcher $events ) : void
Create a new queue monitor command.
Parameters
- $manager Factory
- $events Dispatcher
public
handle ( ) : void
Execute the console command.
protected
parseQueues ( $queues ) : Illuminate\...\Collection
Parse the queues into an array of the connections and queues.
Parameters
- $queues string
protected
displaySizes ( Illuminate\...\Collection $queues ) : void
Display the queue sizes in the console.
Parameters
- $queues Illuminate\...\Collection
protected
dispatchEvents ( Illuminate\...\Collection $queues ) : void
Fire the monitoring events.
Parameters
- $queues Illuminate\...\Collection