Task settings for a new Moodle site?

Task settings for a new Moodle site?

by Joel Peltonen -
Number of replies: 3

First message, let me know of any faux pas. This forum felt like the best option for my topic.

I have a Moodle 4.5 and restoring from a 11 KB backup takes 30+ minutes. In my task logs I see the "Asynchronous restore" was actually done with a duration 5 seconds, but that comes after 30 minutes of waiting.

The task log has many entries every second. Understandable, but feels like a lot and the wait is a bit painful. Are there any best practices I might be missing to make course restores fast(er)?

I have ~50 restores to do in the coming weeks (template to individual course) and probably will do quite a lot more in the future.

Average of ratings: -
In reply to Joel Peltonen

Task settings for a new Moodle site?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
That sounds wrong. An 11KB backup is tiny and should take no time at all. First thing... how often is your cron setup set to run?

If every second (as recommended) then what else is happening with your tasks that is preventing the restore from running?

If you haven't, you should definitely read Cron. There's lots of useful information. The tasks subsystem has a few settings you can 'tune' as well.
Average of ratings: Useful (1)
In reply to Howard Miller

Task settings for a new Moodle site?

by Joel Peltonen -
Ha! I do believe you got to the root of the issue right away, I have discovered Warning: The admin/cli/cron.php script has not been run for 18 mins 55 secs and should run every 1 min.

I contacted our hosting provider as I don't actually have access to the server and I could not find any setting that actually sets how often cron runs. Thank you.