mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-67211 Tasks: Add cron_enabled setting.
Co-authored-by: Sam Marshall <s.marshall@open.ac.uk>
This commit is contained in:
parent
45875f6f7b
commit
d7342dc239
12 changed files with 193 additions and 9 deletions
|
@ -1095,7 +1095,7 @@ class manager {
|
|||
|
||||
// Shell-escaped task name.
|
||||
$classname = get_class($task);
|
||||
$taskarg = escapeshellarg("--execute={$classname}");
|
||||
$taskarg = escapeshellarg("--execute={$classname}") . " " . escapeshellarg("--force");
|
||||
|
||||
// Build the CLI command.
|
||||
$command = "{$phpbinary} {$scriptpath} {$taskarg}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue