I would like to start using the magento cronjob to send out review reminders automatically. Cron jobs have never run before (since its installation two years ago) on this installation if I'm correct. I wonder what will happen. Can this result in problems?
Asked
Active
Viewed 191 times
1 Answers
5
It shouldn't be an issue, check the table cron_schedule in the database. The uncompleted tasks that are in there will be executed so in case you want to make a fresh start just TRUNCATE that table.
After that you can set up either cron.php or cron.sh and it will rebuild the table with the current cron tasks.
I would recommend installing Aoe Scheduler if you want more insight in what cronjobs are running on your Magento installation.
Sander Mangel
- 37,528
- 5
- 80
- 148
-
Depends on how large the log tables have grown to. They can be so large that running the log table maintenance can cause memory exhaustion. The log maintenance script in the shell/ folder may have to be run and if it crashes, then the tables will have to be manually truncated. If it's a reasonably active site, the log tables are going to be huge after not having been cleaned for two years. – Fiasco Labs Oct 05 '13 at 01:55
-
You're right, might be smart to truncate those manually before running the first cron. – Sander Mangel Oct 05 '13 at 07:13
-
1Moral of the story, always set a cron job on the server to run Magento's cron.sh or cron.php trigger from the very beginning. Your customers will love you for not having the website speed decrease as the logs fill and your hosting provider will love you for not wasting disk space. – Fiasco Labs Oct 05 '13 at 16:03
-
I had problems getting the cron jobs running. The linux cron did its job, but for some reason magento cron tasks were not executed. After installing the AOE scheduler all problems were solved, without doing anything else. I haven't noticed any problems with performance or anything since then. – SPRBRN Oct 23 '13 at 11:44