MDL-67485 task: Release the task runner lock before throwing exception.

This commit is contained in:
Mikhail Golenkov
2020-01-09 15:09:33 +11:00
parent b2c0237ae8
commit b3e0d3edec
2 changed files with 28 additions and 20 deletions
+2
View File
@@ -478,6 +478,7 @@ class manager {
*
* @param int $timestart
* @return \core\task\adhoc_task or null if not found
* @throws \moodle_exception
*/
public static function get_next_adhoc_task($timestart) {
global $DB;
@@ -532,6 +533,7 @@ class manager {
*
* @param int $timestart - The start of the cron process - do not repeat any tasks that have been run more recently than this.
* @return \core\task\scheduled_task or null
* @throws \moodle_exception
*/
public static function get_next_scheduled_task($timestart) {
global $DB;