Thursday, June 7, 2012

Moodle Cron Service resetting interval

My customer is experimenting with completion tracking and noted that the frequency in which she completes a task and it showing up is too great.  She did a little research and found a moodle doc page that said to ensure the cron script was running frequently, as it needed to process to report the completion.

I am running Windows and so am using a service to call the cron script.  I went to my service window and saw the Moodle Cron service running.  I tried to edit the frequency of its calling, but did not see where I could do this in the properties of the service.

My next thought was to delete the service and re-install it, setting the interval then.  I tried to use the command line command like this:  sc delete "Moodle Cron" , but Windows was not finding the service.  Then I noticed that I had an uninstall option in my Start Menu | Programs | MoodleCron |Uninstall MoodleCron.

It took about 3 seconds to uninstall.  I went to my downloads folder on the server and executed the MoodleCron-Setup.exe file, said yes to tracking, specified 10 minute interval and was done.

I did read the Readme file in the install directory, which stated I could use the system registry to edit the interval property, but decided to just simply uninstall and reinstall.

I will probably do this again, as I will be adding a couple new moodle instances on this server very soon, and will specify each cron script to run on each of the moodle instances.

1 comment:

  1. I found my own message, again - I could not recall how to remove this service, googled and found this...funny stuff james

    ReplyDelete