SMS broadcast sending duplicate sms

Your software
My Mautic version is: 4.0.0
My PHP version is: 7.4
My Database type and version is: mariadb

Your problem
My problem is: We send around 1 million sms per day. When we send it using regular (Not scheduled) way, there is no issue. Have been doing it for quite some time now. But when we schedule sms and use mautic:broadcast:send to send bulk sms, it sends duplicate sms. Sometimes it even sends 5 duplicate for same message.

These errors are showing in the log: No errors in the log

Steps I have tried to fix the problem: Not sure what steps to take here

Hi couple of questions:

  1. what is your batch size in your cron?
  2. how often are you running the command?

Hi Joey,

Thanks for your reply. Please find below the details :

This is the command i use without any batch size :

mautic mautic:broadcasts:send --channel=sms

Also i run it every 5 mins

Thanks
Viinboxadmin

I see it ran multiple broadcast instance for sending sms. Is there a way i can limit it to 1 only and not start mautic:broadcast:send more than one at any point.

Hi, I would debug it like this:

  1. Stop all broadcast (stop cron)
  2. Run the following command in ssh and see how long it takes.
    mautic mautic:broadcasts:send --channel=sms --limit=500

Adjust to make sure it only runs for 4:45 min.

This way you have a little buffer before you have multiple sms going out.