MDL-51707 cron: Prevent finished tasks being returned

This commit is contained in:
Michael Aherne
2015-10-08 14:43:56 +01:00
parent 74fad2ce3d
commit 1dc462baa5
+6
View File
@@ -491,6 +491,12 @@ class manager {
}
}
// Make sure the task data is unchanged.
if (!$DB->record_exists('task_scheduled', (array) $record)) {
$lock->release();
continue;
}
if (!$task->is_blocking()) {
$cronlock->release();
} else {