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
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!