How to Run a Function Every Hour in Cron

configurationcron

I want run a magento function that would run at every hour , i am written code in config.xml but i did not working.here the code in config.xml

<crontab>
            <jobs>
                <stockalert_autosend>
                <schedule><cron_expr>* */1 * * *</cron_expr></schedule>
                <run><model>stockalert/observer::backinstock</model></run>
            </stockalert_autosend>
            </jobs>
        </crontab>

I assume that there issue in * */1 * * * Please help me

Best Answer

try with this cron expression:

<cron_expr>0 * * * *</cron_expr>

I'm not exactly sure what your expression does but I have a feeling it triggers every minute.

Related Topic