Property | Type | Description | |
---|---|---|---|
$description | string | The console command description. | |
$signature | string | The console command name. | |
$worker | The queue worker instance. |
Method | Description | |
---|---|---|
__construct ( |
Create a new queue listen command. | |
fire ( ) : void | Execute the console command. |
Method | Description | |
---|---|---|
downForMaintenance ( ) : boolean | Determine if the worker should run in maintenance mode. | |
gatherWorkerOptions ( ) : |
Gather all of the queue worker options as a single object. | |
getQueue ( string $connection ) : string | Get the queue name for the worker. | |
listenForEvents ( ) : void | Listen for the queue events in order to update the console output. | |
logFailedJob ( Illuminate\Queue\Events\JobFailed $event ) : void | Store a failed job event. | |
runWorker ( string $connection, string $queue ) : array | Run the worker instance. | |
writeOutput ( Illuminate\Contracts\Queue\Job $job, boolean $failed ) : void | Write the status output for the queue worker. |
public __construct ( |
||
$worker | ||
return | void |
protected downForMaintenance ( ) : boolean | ||
return | boolean |
protected gatherWorkerOptions ( ) : |
||
return |
protected listenForEvents ( ) : void | ||
return | void |
protected logFailedJob ( Illuminate\Queue\Events\JobFailed $event ) : void | ||
$event | Illuminate\Queue\Events\JobFailed | |
return | void |
protected writeOutput ( Illuminate\Contracts\Queue\Job $job, boolean $failed ) : void | ||
$job | Illuminate\Contracts\Queue\Job | |
$failed | boolean | |
return | void |
protected string $description | ||
return | string |
protected string $signature | ||
return | string |