1. Home
  2. Docs
  3. Laravel
  4. “php artisan queue:” commands
  5. artisan queue:listen

artisan queue:listen

PURPOSE

Alternatively, you may run the queue:listen command. When using the queue:listen command, you don’t have to manually restart the worker after your code is changed; however, this command is not as efficient as queue:work:

USAGE

 Description:
   Listen to a given queue
 
 Usage:
   queue:listen [options] [--] [<connection>]
 
 Arguments:
   connection               The name of connection
 
 Options:
       --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"]
       --queue[=QUEUE]      The queue to listen on
       --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 
Was this article helpful to you? Yes No