MDL-67485 task: Release the task runner lock before throwing exception.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user