horizon:supervisor

Start a new supervisor

Options

  • auto-scaling-strategy=time - If supervisor should scale by jobs or time to complete Optional
  • backoff=0 - The number of seconds to wait before retrying a job that encountered an uncaught exception Optional
  • balance - The balancing strategy the supervisor should apply Optional
  • balance-cooldown=3 - The number of seconds to wait in between auto-scaling attempts Optional
  • balance-max-shift=1 - The maximum number of processes to increase or decrease per one scaling Optional
  • delay=0 - The number of seconds to delay failed jobs (Deprecated) Optional
  • force - Force the worker to run even in maintenance mode Optional
  • max-jobs=0 - The number of jobs to process before stopping a child process Optional
  • max-processes=1 - The maximum number of total workers to start Optional
  • max-time=0 - The maximum number of seconds a child process should run Optional
  • memory=128 - The memory limit in megabytes Optional
  • min-processes=1 - The minimum number of workers to assign per queue Optional
  • nice=0 - The process priority Optional
  • parent-id=0 - The parent process ID Optional
  • paused - Start the supervisor in a paused state Optional
  • queue - The names of the queues to work Optional
  • rest=0 - Number of seconds to rest between jobs Optional
  • sleep=3 - Number of seconds to sleep when no job is available Optional
  • timeout=60 - The number of seconds a child process can run Optional
  • tries=0 - Number of times to attempt a job before logging it failed Optional
  • workers-name=default - The name that should be assigned to the workers Optional

Arguments

  • name - The name of supervisor Required
  • connection - The name of the connection to work Required
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>