horizon:work

Start processing jobs on the queue as a daemon

Options

  • backoff - The number of seconds to wait before retrying a job that encountered an uncaught exception Optional
  • daemon - Run the worker in daemon mode (Deprecated) Optional
  • delay - The number of seconds to delay failed jobs (Deprecated) Optional
  • force - Force the worker to run even in maintenance mode Optional
  • max-jobs - The number of jobs to process before stopping Optional
  • max-time - The maximum number of seconds the worker should run Optional
  • memory - The memory limit in megabytes Optional
  • name - The name of the worker Optional
  • once - Only process the next job on the queue Optional
  • queue - The names of the queues to work Optional
  • rest - Number of seconds to rest between jobs Optional
  • sleep - Number of seconds to sleep when no job is available Optional
  • stop-when-empty - Stop when the queue is empty Optional
  • supervisor - The name of the supervisor the worker belongs to Optional
  • timeout - The number of seconds a child process can run Optional
  • tries - Number of times to attempt a job before logging it failed Optional

Arguments

  • connection - The name of the queue connection to work Optional
php artisan horizon:work [--name [NAME]] [--delay [DELAY]] [--backoff [BACKOFF]] [--max-jobs [MAX-JOBS]] [--max-time [MAX-TIME]] [--daemon] [--force] [--memory [MEMORY]] [--once] [--stop-when-empty] [--queue [QUEUE]] [--sleep [SLEEP]] [--rest [REST]] [--supervisor [SUPERVISOR]] [--timeout [TIMEOUT]] [--tries [TRIES]] [--] [<connection>]