What is the difference between queue:work --daemon and queue:listen

后端 未结 4 1935
礼貌的吻别
礼貌的吻别 2020-11-28 22:12

I\'m settin up my offline job server. I\'ve read the documentation but I still don\'t really see the differences between the two commands: artisan queue:work --daemon<

4条回答
  •  情深已故
    2020-11-28 22:55

    Things have been changed but it was not mentioned in the document

     --daemon  Run the worker in daemon mode (Deprecated)
    

    now by default php artisan queue:work runs in daemon mode,

    so queue:work continue processing jobs without ever re-booting the framework

    for run it once command is,

    php artisan queue:work --once

提交回复
热议问题