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

jfwblog's avatar

Queues, Perform More Than One Job at a Time

Hello,

I am working with asynchronous job queus but have bumped into one serious limitation. It seems that not more than one job at a time can be done by queue:work or queue:listen and forking at the start of a job to work around this causes stability issues.

I would like to be able to perform more than one job at a time. Basically, this is a backend api that takes jobs from other servers on the network, and it is desireable to do all the jobs immediately, as many jobs as there are, at once.

I have seen in the documentation there is a mechanism to have multiple queues and for the application to dispatch jobs to specific queues. This is not entirely desirable. I would like just one general queue, just that it does not perform jobs one at a time.

Is there a way to do this? Or, is there a way to fork within the job that does not cause stability issues?

If I were to work on this feature and submit a pull request is this something that may be pulled upstream? Or is this type of functionality explicitly avoided and that is why it is not present currently?

Any reccomendations would be appreciated, Thank you.

0 likes
3 replies
youri's avatar

I'm not going to watch a 35m Russian video, but I don't think a chain of some sort is desired.

He wants to process a queue in parallel instead of serial. So a few more workers working on the same queue is all that is needed. Which is described in the official documentation as mentioned above.

Please or to participate in this conversation.