Artisan.page

horizon:work

Start processing jobs on the queue as a daemon

Terminal
php artisan horizon:work [--delay [DELAY]] [--daemon] [--force] [--memory [MEMORY]] [--once] [--stop-when-empty] [--queue [QUEUE]] [--sleep [SLEEP]] [--supervisor [SUPERVISOR]] [--timeout [TIMEOUT]] [--tries [TRIES]] [--] [<connection>]

Options

daemonOptional

Run the worker in daemon mode (Deprecated)

delayOptional

Amount of time to delay failed jobs

forceOptional

Force the worker to run even in maintenance mode

memoryOptional

The memory limit in megabytes

onceOptional

Only process the next job on the queue

queueOptional

The names of the queues to work

sleepOptional

Number of seconds to sleep when no job is available

stop-when-emptyOptional

Stop when the queue is empty

supervisorOptional

The name of the supervisor the worker belongs to

timeoutOptional

The number of seconds a child process can run

triesOptional

Number of times to attempt a job before logging it failed

Arguments

connectionOptional

The name of the queue connection to work