1
votes

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

1
what is the problem? are you getting any errors?Sapnesh Naik
there is no error in there, I just want to know why is it starting automatically, and since it is already started it is not pointing to the folder where it should start processing jobsRinor Dreshaj

1 Answers

0
votes

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.