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

pmeneses97's avatar

Queue without Supervisor

Hello everyone, I am reaching out to seek advice regarding an issue I have encountered in the implementation of a system that sends a substantial volume of emails, subsequently processed in a queue.

Excessive Instance Generation:

Upon closer inspection, I observed that the cronjob itself generates new instances in the terminal, leading to an accumulation of active services on the server. This, in turn, results in timeouts and performance issues.

Queue Shutdown and Manual Reset:

In an attempt to address the issue, I experimented with running the cronjob once, checking for the queue's active state in the terminal, and subsequently removing the cron. Unfortunately, this approach proved unreliable, as the queue would intermittently and unpredictably shut down, necessitating manual intervention to reset it.

I can't install supervisor in my shared hosting, Hence, I am inquiring if there exists an alternative solution, either through code or terminal commands, that can effectively address these issues. I came across references to "Task Scheduling," but I am uncertain if it might introduce similar challenges, potentially creating multiple instances as observed with the cron configuration.

I would greatly appreciate any insights, ideas, or recommendations you may have on this matter.

Thank you for your time and consideration.

0 likes
3 replies
Snapey's avatar

What are your expectations regarding how quickly a 'substantial' number of emails might be sent?

pmeneses97's avatar

@Snapey Hello! The code is just a simple procedure of: Mail -> Job and implements ShouldQueue. The queue is stored in a database and running artisan queue:work to dispatch the jobs.

Controller: dispatch(new Job_SendMail($data, $message, $title, $image));

Mail & Job Standard build from the docs and content that i want to send in the message.

The substancial amount is between 1000/4000. Thank you

Please or to participate in this conversation.