1. Home
  2. Docs
  3. laravel
  4. “php artisan queue:...
  5. artisan queue:work

artisan queue:work


You may run the worker using the queue:work Artisan command. Note that once the queue:work command has started, it will continue to run until it is manually stopped or you close your terminal


> php artisan queue:work
   Start processing jobs on the queue as a daemon

   queue:work [options] [--] [<connection>]
   connection               The name of the queue connection to work

       --queue[=QUEUE]      The names of the queues to work
       --daemon             Run the worker in daemon mode (Deprecated)
       --once               Only process the next job on the queue
       --stop-when-empty    Stop when the queue is empty
       --delay[=DELAY]      The number of seconds to delay failed jobs [default: "0"]
       --force              Force the worker to run even in maintenance mode
       --memory[=MEMORY]    The memory limit in megabytes [default: "128"]
       --sleep[=SLEEP]      Number of seconds to sleep when no job is available [default: "3"]
       --timeout[=TIMEOUT]  The number of seconds a child process can run [default: "60"]
       --tries[=TRIES]      Number of times to attempt a job before logging it failed [default: "1"]
   -h, --help               Display this help message
   -q, --quiet              Do not output any message
   -V, --version            Display this application version
       --ansi               Force ANSI output
       --no-ansi            Disable ANSI output
   -n, --no-interaction     Do not ask any interactive question
       --env[=ENV]          The environment the command should run under
   -v|vv|vvv, --verbose     Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug 

Reference: https://laravel.com/docs/6.x/queues#running-the-queue-worker