Artisan.page

horizon:supervisor

Start a new supervisor

Terminal
php artisan horizon:supervisor [--balance [BALANCE]] [--delay [DELAY]] [--backoff [BACKOFF]] [--max-jobs [MAX-JOBS]] [--max-time [MAX-TIME]] [--force] [--max-processes [MAX-PROCESSES]] [--min-processes [MIN-PROCESSES]] [--memory [MEMORY]] [--nice [NICE]] [--paused] [--queue [QUEUE]] [--sleep [SLEEP]] [--timeout [TIMEOUT]] [--tries [TRIES]] [--auto-scaling-strategy [AUTO-SCALING-STRATEGY]] [--balance-cooldown [BALANCE-COOLDOWN]] [--balance-max-shift [BALANCE-MAX-SHIFT]] [--workers-name [WORKERS-NAME]] [--parent-id [PARENT-ID]] [--rest [REST]] [--] <name> <connection>

Options

auto-scaling-strategyOptional

If supervisor should scale by jobs or time to complete

backoffOptional

The number of seconds to wait before retrying a job that encountered an uncaught exception

balanceOptional

The balancing strategy the supervisor should apply

balance-cooldownOptional

The number of seconds to wait in between auto-scaling attempts

balance-max-shiftOptional

The maximum number of processes to increase or decrease per one scaling

delayOptional

The number of seconds to delay failed jobs (Deprecated)

forceOptional

Force the worker to run even in maintenance mode

max-jobsOptional

The number of jobs to process before stopping a child process

max-processesOptional

The maximum number of total workers to start

max-timeOptional

The maximum number of seconds a child process should run

memoryOptional

The memory limit in megabytes

min-processesOptional

The minimum number of workers to assign per queue

niceOptional

The process priority

parent-idOptional

The parent process ID

pausedOptional

Start the supervisor in a paused state

queueOptional

The names of the queues to work

restOptional

Number of seconds to rest between jobs

sleepOptional

Number of seconds to sleep when no job is available

timeoutOptional

The number of seconds a child process can run

triesOptional

Number of times to attempt a job before logging it failed

workers-nameOptional

The name that should be assigned to the workers

Arguments

nameRequired

The name of supervisor

connectionRequired

The name of the connection to work