0

Through cpanel I have configured cron.sh to run every 5 minutes (working).

I have added a custom module meant to run every 1 minute (code below).

The issue is that the cron is not running every 1 minutes as configured in module, but it is running every 5 mintutes as configured through cpanel. How I can configure to run per minute in this module?

<?xml version="1.0"?>
<config>
    <modules>
        <Atwix_Tweaks>
            <version>1.0</version>
        </Atwix_Tweaks>
    </modules>
    <frontend>
        <routers>
            <customtest>
                <use>standard</use>
                <args>
                    <module>Atwix_Tweaks</module>
                    <frontName>runcron</frontName>
                </args>
            </customtest>
        </routers>
    </frontend>
    <global>
        <blocks>
            <tweaks>
                <class>Atwix_Tweaks_Block</class>
            </tweaks>
            <catalog>
                <rewrite>
                    <product_list_toolbar>Atwix_Tweaks_Block_Product_List_Toolbar</product_list_toolbar>
                </rewrite>
            </catalog>
        </blocks>
        <models>
             <Atwix_Tweaks>
                <class>Atwix_Tweaks_Model</class>
            </Atwix_Tweaks>
        </models>
    </global>

 <crontab>
        <jobs>
            <Atwix_Tweaks>
                <schedule><cron_expr>*/1 * * * *</cron_expr></schedule>
                <run><model>Atwix_Tweaks/observer::test</model></run>
            </Atwix_Tweaks>
        </jobs>
    </crontab>
</config>
  • Can you share your crontab configuration? – KAndy Dec 28 '18 at 20:26
  • Please check screenshoot -> link – Techcruz Technologies Dec 29 '18 at 4:42
  • Please change on cpanel 5 minutes to 1 minutes. – hardik Dec 31 '18 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.