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

artisan queue:listen


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:


   Listen to a given queue
   queue:listen [options] [--] [<connection>]
   connection               The name of connection
       --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