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:
co-authored by
Stevani Andolo
parent
f13392d230
commit
bd3af64741
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user