I have a local module with a cron job configured in config.xml to run once per day at 10:30am:
<sc_followup>
<schedule>
<cron_expr>30 10 * * *</cron_expr>
</schedule>
<run>
<model>followup/cron::processFollowupEmails</model>
</run>
</sc_followup>
I also have the system's crontab set up to run cron.php every 5 minutes:
*/5 * * * * php -f /abspath/mysite/cron.php > abspath/mysite/var/log/cron.log
The admin cron settings are:
Lastly, I have cleared the caches.
My issue is that processFollowupEmails()
is running once every 5 minutes instead of once per day at 10:30am. What do I need to change in my configuration to achieve that?
crontab -l
for my web user above. I do not have access to the entire server's schedule. – Reflexorozy May 4 '15 at 17:20cron_schedule
– zhartaunik May 4 '15 at 17:24processFollowupEmails
either a public or a static public method? – musicliftsme May 4 '15 at 17:26