Skip to main content
added 4 characters in body; edited tags
Source Link
7ochem
  • 7.6k
  • 14
  • 52
  • 80

I see this in the Mage_Log config xmlMage_Log config.xml

<crontab>
    <jobs>
        <log_clean>
            <run>
                <model>log/cron::logClean</model>
            </run>
        </log_clean>
    </jobs>
</crontab>

and noticed that the <schedule> tag is omitted. I know this cron job is schedule to run at what is set in the System > Configuration > Advanced > System > Log Cleaning configuration, but I don't see how this connection is made. How does Magento know when to run this cron based on the configuration in admin panel? I'm trying to do something similar for a custom module.

I'm using Magento EE 1.13.0.2.

I see this in the Mage_Log config xml

<crontab>
    <jobs>
        <log_clean>
            <run>
                <model>log/cron::logClean</model>
            </run>
        </log_clean>
    </jobs>
</crontab>

and noticed that the <schedule> tag is omitted. I know this cron job is schedule to run at what is set in the System > Configuration > Advanced > System > Log Cleaning configuration, but I don't see how this connection is made. How does Magento know when to run this cron based on the configuration in admin panel? I'm trying to do something similar for a custom module.

I'm using Magento EE 1.13.0.2.

I see this in the Mage_Log config.xml

<crontab>
    <jobs>
        <log_clean>
            <run>
                <model>log/cron::logClean</model>
            </run>
        </log_clean>
    </jobs>
</crontab>

and noticed that the <schedule> tag is omitted. I know this cron job is schedule to run at what is set in the System > Configuration > Advanced > System > Log Cleaning configuration, but I don't see how this connection is made. How does Magento know when to run this cron based on the configuration in admin panel? I'm trying to do something similar for a custom module.

I'm using Magento EE 1.13.0.2.

Tweeted twitter.com/#!/StackMagento/status/416838092277178368
Source Link
Nick Rolando
  • 1.2k
  • 5
  • 17
  • 36

Omitting schedule in module's crontab config xml

I see this in the Mage_Log config xml

<crontab>
    <jobs>
        <log_clean>
            <run>
                <model>log/cron::logClean</model>
            </run>
        </log_clean>
    </jobs>
</crontab>

and noticed that the <schedule> tag is omitted. I know this cron job is schedule to run at what is set in the System > Configuration > Advanced > System > Log Cleaning configuration, but I don't see how this connection is made. How does Magento know when to run this cron based on the configuration in admin panel? I'm trying to do something similar for a custom module.

I'm using Magento EE 1.13.0.2.