4

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?

2
  • 1
    hey @rxt, keep us updated on your question. You've posted a popular question so be sure to let us know what happened :) Oct 7, 2013 at 8:31
  • I have the cron jobs working, and nothing strange has happened.
    – SPRBRN
    Oct 23, 2013 at 11:41

1 Answer 1

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.

4
  • 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. Oct 5, 2013 at 1:55
  • You're right, might be smart to truncate those manually before running the first cron. Oct 5, 2013 at 7:13
  • 1
    Moral 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. Oct 5, 2013 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, 2013 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.