MDL-79128 adhoc_task: Added 'Never' status for ad-hoc task Next run

Co-authored-by: Stevani Andolo <[email protected]>
This commit is contained in:
Huong Nguyen
2023-12-20 13:55:13 +07:00
co-authored by Stevani Andolo
parent f13392d230
commit bd3af64741
2 changed files with 14 additions and 2 deletions
+6
View File
@@ -543,6 +543,7 @@ class manager {
'failed' => 0,
'running' => 0,
'due' => 0,
'stop' => false,
];
}
@@ -564,6 +565,11 @@ class manager {
}
}
// Mark the task as stopped if it has no attempts available.
if (isset($r->attemptsavailable) && $r->attemptsavailable == 0) {
$classsummary['stop'] = true;
}
$summary[$r->component][$r->classname] = $classsummary;
}
return $summary;