Your software
My Mautic version is: 3.2
My PHP version is: 7.4
My Database type and version is: MariaDB 10.6
My problem is:
My mautic cron jobs are running at specified time below
0,20,40 * * * * sudo -u www-data php /var/www/html/mautic/bin/console mautic:segments:update
10,30,50 * * * * sudo -u www-data php /var/www/html/mautic/bin/console mautic:campaigns:update
15,35,55 * * * * sudo -u www-data php /var/www/html/mautic/bin/console mautic:campaigns:trigger
My cron jobs are running on different domains of my application.
Problem: I have noticed that during the trigger command of campaigns, there are some campaigns with huge number of leads (say 400 - 500). So the sending email to these leads takes a lot of time. sometimes around 1 to 2 hours.
What can I do to reduce the time effectively.
There is an idea that I run my trigger cron in multiple instances, which in turns helps to execute more events in the given time frame, but the question is will it execute the event multiple times when doing so?
I went through the docs about cron jobs, but couldn’t find anything useful.
Does anybody else has faced the same issue?
How to resolve it efficiently?