MDL-67211 Tasks: Add cron_enabled setting.

Co-authored-by: Sam Marshall <[email protected]>
This commit is contained in:
Mikhail Golenkov
2020-08-25 17:01:00 +10:00
co-authored by Sam Marshall
parent 3263daba84
commit e419e18f0d
12 changed files with 193 additions and 9 deletions
+1 -1
View File
@@ -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}";