The setting of the running status in the cron_schedule table in Magento 1.4 is not working correctly. The code in Magento 1.4 is not 100% correct. Create a local copy of Mage_Cron_Model_Observer and take a look at the dispatch function:
|
1 |
$schedule->setExecutedAt(strftime('%Y-%m-%d %H:%M:%S', time()))->save(); |
The status should also be saved here, not just the execution time. Change the code from the above to the below:
|
1 |
$schedule->setStatus(Mage_Cron_Model_Schedule::STATUS_RUNNING)->setExecutedAt(strftime('%Y-%m-%d %H:%M:%S', time()))->save(); |
Setting running status correctly in Magento 1.4
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.