mirror of
https://github.com/moodle/moodle.git
synced 2025-02-12 11:32:04 +01:00
MDL-48442 tasks: Make sure first run is as per schedule
This commit is contained in:
parent
eb1dc9fab9
commit
4047cd751f
@ -99,6 +99,9 @@ class manager {
|
||||
$classname = '\\' . $classname;
|
||||
}
|
||||
|
||||
// For tasks, the first run should also follow the schedule.
|
||||
$task->set_next_run_time($task->get_next_scheduled_time());
|
||||
|
||||
// If there is an existing task with a custom schedule, do not override it.
|
||||
$currenttask = self::get_scheduled_task($classname);
|
||||
if ($currenttask && $currenttask->is_customised()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user