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

eskiesirius's avatar

Display the number being sent in real time

What is the best way to achieve this?

I have a job that will send a message to a contact then when I send a bulk message like 1000 contacts, I want to see the number of messages/jobs sent to the contacts in real time.

Example: 100/1000 contacts <--- means we already sent a message to the 100 contacts

0 likes
2 replies
ramonrietdijk's avatar

You could achieve this by making use of batches. If you dispatch the jobs within a batch, and save the batch id, you can fetch the statistics of the batch.

This way, you can easily inspect the batch afterwards and see how much jobs have been processed.

Please or to participate in this conversation.