MDL-62709 core_message: fix for silently ignored errors in task
This commit is contained in:
committed by
Mark Nelson
parent
fd308528cd
commit
904aec69a0
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user