WorkerCommand
extends Command
in package
FinalYes
Runs a supervised service-mode worker from Artisan.
Table of Contents
Properties
- $description : mixed
- $signature : mixed
- $workers : WorkerFactory
Methods
- __construct() : mixed
- handle() : int
- pollTimeout() : int
Properties
$description
protected
mixed
$description
= 'Run the Durable Workflow service-mode worker'
$signature
protected
mixed
$signature
= 'durable-workflow:worker
{--queue= : Override the configured task queue}
{--poll-timeout= : Long-poll timeout in seconds (0-60)}'
$workers read-only
private
WorkerFactory
$workers
Methods
__construct()
public
__construct(WorkerFactory $workers) : mixed
Parameters
- $workers : WorkerFactory
handle()
public
handle() : int
Return values
intpollTimeout()
private
pollTimeout() : int