1

I'm implementig Laravel queues via database driver, and when I start the process for listening the jobs, another process is also started. So basically I'm doing php artisan queue:listen and the process that is automatically started is php artisan queue:work.

enter image description here so basically the second process here is generated automatically, also the thing is that it doesnt point to the folder where it should be

4

1 回答 1

0

The listener:

php artisan queue:listen

starts a long-running process that will "run" (process) new jobs as they are pushed onto the queue. See docs.

The processer:

php artisan queue:work

Will process new jobs as they are pushed onto the queue. See docs.

So basically queue:listen runs queue:work as and when new jobs are pushed.

P.S: You need not worry about this but its good to know how it works. You can dig into the code if you need more information.

于 2018-02-15T11:17:48.920 回答