mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 03:52:16 +02:00
MDL-62709 core_message: fix for silently ignored errors in task
This commit is contained in:
parent
50e48a8f2d
commit
8791c50d64
@ -90,10 +90,10 @@ class migrate_message_data extends \core\task\adhoc_task {
|
||||
$this->migrate_data($userid, $otheruserid);
|
||||
$transaction->allow_commit();
|
||||
} catch (\Throwable $e) {
|
||||
$updatepreference = false;
|
||||
throw $e;
|
||||
} finally {
|
||||
$lock->release();
|
||||
}
|
||||
|
||||
$lock->release();
|
||||
} else {
|
||||
// Couldn't get a lock, move on to next user but make sure we don't update user preference so
|
||||
// we still try again.
|
||||
|
Loading…
x
Reference in New Issue
Block a user