How frequently do you run cron and why?

How frequently do you run cron and why?

by Matt Bury -
Number of replies: 4
Picture of Plugin developers

Hi Moodlers,

I trying to make a well informed decision about how frequently I should run Moodle cron, so...

How frequently do you run cron and why?

Thanks in advance! smile

Average of ratings: -
In reply to Matt Bury

Re: How frequently do you run cron and why?

by Just H -

Frequency: Every minute

Why: because the docs say to big grin (actually, we use activity completion to trigger various functionality such as emails and to lift access restrictions therefore, we need the cron to run regularly to ensure students aren't held up)

Average of ratings: Useful (3)
In reply to Matt Bury

Re: How frequently do you run cron and why?

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Matt,

For my currently active Moodle sites (3 of them) I run cron every minute for the same reason Just H gives. For archived Moodle sites (6 of them) from the most recent past two years, since I do access stuff from them on a fairly regular basis, I run cron every 30 minutes. Longer interval would be okay too. If necessary, I run cron on them manually.

On my archived sites that are over 2 years old, I remove them from cron. If I need to access anything in them, the first thing I do is go manually run cron.

Average of ratings: Useful (1)
In reply to Matt Bury

Re: How frequently do you run cron and why?

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
On my small moodle of 125 users, 4 courses, on a VPS, I run it once an hour.
Average of ratings: Useful (1)
In reply to Rick Jerz

Re: How frequently do you run cron and why?

by Matt Bury -
Picture of Plugin developers

So far, I think it's a good idea to run cron every minute and then adjust which tasks I want cron to trigger and when within Moodle, i.e. in Administration > Site administration > Server > Scheduled tasks

Especially for things like automatic course completion and awarding badges, I think users expect something immediate so even a < 1 minute delay can still be too long.

It's also nice for groups to get frequent updates of forum posts on the occasions when users tend to be online at the same time. It's somewhere between asynchronous forums and synchronous chat.