MDL-67211 Tasks: Record when a task is running.

Co-authored-by: Sam Marshall <[email protected]>
This commit is contained in:
Mikhail Golenkov
2020-08-25 16:59:47 +10:00
co-authored by Sam Marshall
parent 96fac6d9ce
commit 59a5923924
12 changed files with 452 additions and 6 deletions
+2
View File
@@ -75,6 +75,8 @@ class database_logger implements task_logger {
'dbwrites' => $dbwrites,
'result' => (int) $failed,
'output' => file_get_contents($logpath),
'hostname' => $task->get_hostname(),
'pid' => $task->get_pid(),
];
if (is_a($task, adhoc_task::class) && $userid = $task->get_userid()) {