Hi, I've been thinking about the problem a lot lately. How do you manage long running cronjobs when you want to upgrade?
The docs state:
Before you begin upgrading your site, you should put it into maintenance mode to stop any non-admin users from logging in. Then you should wait for any currently running cron processes to complete before proceeding.
To me that is not an option. For example course backups are running for days and I have to kill the processes before the upgrade manually. Even then it's troublesome because the process takes about 10 minutes to exit gracefully. I don't want to kill them with -15 switch and leave things lingering on the drive and in the database.
Issuing 'cron.php -s' only manages to stop the short running jobs in time.
Does anyone just ignore the cronjobs anyway and proceeds with the upgrade? Do you do something else? Or do you stop running cronjobs well before the upgrade?