Re: should i disable the cron job while upgrading my site?
Hmm, I never have and never have had any issues.
I do command line updates and upgrades. In my little bash shell script I first had the script set the maintenance mode to on, then tried to run cron. Didn't work. Cron would not run, reporting site as being in maint mode (being updated or upgraded).
Assuming the GUI update/upgrades work the same way ... if you set your site to maintenance mode first before doing update or upgrade, cron will not run. It detects maintenance mode and will not run until site is out of the maintenance modle.
'spirit of sharing', Kn
Awesome, thanks.
I wonder if I enabled maintenance mode while cron was already running, if that would cause any issues.
Probably not, just curious.
Ok, to be curious ... probably should be encouraged to ask questions that consider the flip of anything!
Don't think enabling the maintenance mode would issue a kill -9 command to any process/scheduled task that was already running - just wouldn't launch the next in the schedule. But don't know that for certain, never watched processes/task list execution once maintenance mode enabled. Take a look at your task list in Moodle Admin UI and you can see that many are set to run ASAP but they are for every 50 minutes or so.
Just one thing that might mess up ... depending ... scheduled automated backups. Those one would hopefully set for non-prime time (ie, midnight til 2or3 AM) I would think. What would it mess up kinda depends on how many courses, overall length of time to run through backups of those courses etc.. So the entire process on a large site might not actually finish when server not being hit by users.
If one does CLI updates and upgrades, those usually take well under 5 minutes with git.
'spirit of sharing', Ken