Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eriktobben's avatar

Problems with Queues on Forge

Hi!

I have two sites running on one server. One site has been active for over a year and the other was launched a couple of days ago. Both sites uses queues with queue workers created on Forge, with beanstalk.

I am having some problems with the queue on the new site: Sometimes only some of the jobs get processed and now nothing is. When adding a new job to the queue nothing happens unless I am running php artisan queue:listen.

Today I noticed a strange thing. In my failed_jobs table on the new site there was a record from a job that is living on the other site. I triggered the job again via the old site - and it appeared in the new sites failed_jobs table. After deleting the queue worker for the new site everything on the old site is working again.

I was under the impression that queue workers and the queue itself was separate from every site on a server. Is this correct, or am I missing something fundamental?

Oh, and both queue workers is set up with "queue = default".

0 likes
6 replies
eriktobben's avatar

I have tried restart the queue worker on the new site without luck.

TorbenDaudistel's avatar
Level 5

You have to use different queue names for each site, otherwise the listener who receives the job first, will execute it. This can be either site A oder site B.

5 likes
eriktobben's avatar

Thanks for your reply. I did not know that. I have changed the queue to a different, but still no jobs gets executed. Any tips?

eriktobben's avatar

After testing over a day it seems to be working. Thanks for the help! :)

Please or to participate in this conversation.