MDL-60514 tasks: added new config parameter. changes in cron execution

This commit is contained in:
Toni Barberà Melià
2018-10-25 08:02:44 +02:00
parent c2f1dbcf49
commit c759ae5d55
9 changed files with 112 additions and 5 deletions
+2 -1
View File
@@ -88,7 +88,8 @@ echo html_writer::start_tag('pre');
$CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper';
// Run the specified task (this will output an error if it doesn't exist).
cron_run_single_task($task);
\tool_task\run_from_cli::execute($task);
echo html_writer::end_tag('pre');
$output = $PAGE->get_renderer('tool_task');