Cron Job Issue?

EasyApache 4
My Mautic version is: 45_mautic-449
My PHP 80, PHP 8.0.29-1.1.3.cpanel
extention: php80-php-fileinfo
cPanel & WHM on AlmaLinux
OS: AlmaLinux v8.8.0 STANDARD kvm
cPanel Version 112.0.5

Hi everyone,

Yesterday, we launched a 4K email campaign, and the Mautic Cron Jobs did not disburse the email messages in intervals of 13 emails within a 5-minute Cron Job interval.

See the screenshot image of the exponential delivery:

2023-10-05 06.10.57 1ee49f4890ad

Here are the Cron Job configurations:

/usr/local/bin/php /home/mautic/public_html/ mautic:segments:update

/usr/local/bin/php /home/mautic/public_html/ mautic:campaigns:update

/usr/local/bin/php /home/mautic/public_html/ mautic:campaigns:trigger

/usr/local/bin/php /home/mautic/public_html/ mautic:emails:send

twice a month
/usr/local/bin/php /home/mautic/public_html/ mautic:iplookup:download

Can you recommend either a new Mautic Cron Job or Mautic configuration designed to gradually release email messages over time?

devCED Team

Here are mine.

I place it all in one batch file then run the batch file every minute but I limit each process to about 150 emails per batch so one cronjob would be finish before it execute the next 150 emails.

There a dicussion about batch file cronjon in this forum. Try do a search under poster name “joeyk” and subject “batch”.

/usr/local/bin/php /home/agwmadmin/ mautic:broadcasts:send --limit=150
/usr/local/bin/php /home/agwmadmin/ mautic:emails:send --message-limit=150
/usr/local/bin/php /home/agwmadmin/ mautic:campaigns:rebuild --batch-limit=300
/usr/local/bin/php /home/agwmadmin/ mautic:segment:update --batch-limit=900
/usr/local/bin/php /home/agwmadmin/ mautic:campaigns:trigger
/usr/local/bin/php /home/agwmadmin/ mautic:import --limit=500
/usr/local/bin/php /home/agwmadmin/ mautic:reports:scheduler
1 Like

Why did you not include, mautic:campaigns:update,
/usr/local/bin/php /home/mautic/public_html/ mautic:campaigns:update

Hi @team,
bill did not include “mautic:campaigns:update” because he uses “mautic:campaigns:rebuild” instead. They do the exact same thing, but have different names due to legacy reasons.


1 Like

Hi, Leon & Bill,

For testing purposes, is there a minimum number of sent (e.g., < 2, 3, 4) email messages required to trigger a batch delivery?

/usr/local/bin/php /home/mautic/public_html/ mautic:broadcasts:send --limit=150 >/dev/null 2>&1
/usr/local/bin/php /home/mautic/public_html/ mautic:emails:send --message-limit=150 >/dev/null 2>&1
/usr/local/bin/php /home/mautic/public_html/ mautic:campaigns:rebuild --batch-limit=300 >/dev/null 2>&1
/usr/local/bin/php /home/mautic/public_html/ mautic:segment:update --batch-limit=900 >/dev/null 2>&1
/usr/local/bin/php /home/mautic/public_html/ mautic:campaigns:trigger >/dev/null 2>&1
/usr/local/bin/php /home/mautic/public_html/ mautic:import --limit=500 >/dev/null 2>&1
/usr/local/bin/php /home/mautic/public_html/ mautic:reports:scheduler >/dev/null 2>&1


Hi @team,
no, there is no minimum requirement of emails.



Check this video by @joeyk out.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.