Laravel Artisan CLI safely stop daemon queue workers

前端 未结 4 2218
刺人心
刺人心 2021-01-01 18:03

In order to process large numbers of jobs, I run a variable number of queue workers depending on howmuch work there is to complete. I don\'t want to run more workers than ar

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 18:23

    When using the --daemon flag workers shouldn't quit when the queue is empty.

    I think what you are looking for is in the documentation for queues.

    The php artisan queue:restart command will prompt the workers to restart after they are done their current job.

提交回复
热议问题