I've just upgraded en migrated our Moodelserver to Centos 8.
When I run the cronjob manually, if first executes some tasks and ends with a continuous stream of messages like these:
Execute adhoc task: mod_forum\task\refresh_forum_post_counts
... started 15:07:56. Current memory use 40.5MB.
... used 5002 dbqueries
... used 0.57830691337585 seconds
Adhoc task complete: mod_forum\task\refresh_forum_post_counts
Execute adhoc task: mod_forum\task\refresh_forum_post_counts
... started 15:07:57. Current memory use 40.5MB.
... used 5002 dbqueries
... used 0.57928895950317 seconds
Adhoc task complete: mod_forum\task\refresh_forum_post_counts
This goes on and on and on, reducing the performance of the server.
It either stops after 30 minutes with Stopping processing of adhoc tasks as time limit has been reached (which used to be the maximum execution time of a script in php.ini), or crashes
I've nw changed the max execution time to 20 seconds, but the process still repeats itself for many minutes.
Is this normal behavior?
Second question: is it really ok to repeat the cronjob every minute, even when some cronjobs take way longer to complete (e.g. in order to make an auto-backup of a large course)
Johan