class
Illuminate
/
Queue
/
Console
/
ListenCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
ListenCommand
Extends
Properties
protected
$signature string
The console command name.
Default: 'queue:listen
{connection? : The name of connection}
{--name=default : The name of the worker}
{--delay=0 : The number of seconds to delay failed jobs (Deprecated)}
{--backoff=0 : The number of seconds to wait before retrying a job that encountered an uncaught exception}
{--force : Force the worker to run even in maintenance mode}
{--memory=128 : The memory limit in megabytes}
{--queue= : The queue to listen on}
{--sleep=3 : Number of seconds to sleep when no job is available}
{--timeout=60 : The number of seconds a child process can run}
{--tries=1 : Number of times to attempt a job before logging it failed}'
protected
$description string
The console command description.
Default: 'Listen to a given queue'
Methods
public
__construct ( Listener $listener ) : void
Create a new queue listen command.
Parameters
- $listener Listener
public
handle ( ) : void
Execute the console command.
protected
getQueue ( $connection ) : string
Get the name of the queue connection to listen on.
Parameters
- $connection string