MDL-59594 cron: Allow graceful exit of cron and adhoc task cli's

This commit is contained in:
Brendan Heywood
2020-01-12 01:24:03 +11:00
parent 176b5202e0
commit b15c53f4fa
3 changed files with 8 additions and 2 deletions
+2
View File
@@ -115,5 +115,7 @@ cron_setup_user();
$humantimenow = date('r', time());
$keepalive = (int)$options['keep-alive'];
\core\local\cli\shutdown::script_supports_graceful_exit();
mtrace("Server Time: {$humantimenow}\n");
cron_run_adhoc_tasks(time(), $keepalive, $checklimits);