MDL-67667 core: Deprecate and removal task blocking
There are inherent issues with task blocking which mean that it has never worked properly. It is also very buggy and can lead to massive performance issues with task processing. It is almost impossible to deprecate this in a staged fashion because various APIs use the methods and it is not possible to determine which are API uses and which are other valid uses. In reality there has been little-to-no uptake on the use of this feature and it should just be removed.
This commit is contained in:
@@ -34,7 +34,6 @@ use core\task\adhoc_task;
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class asynchronous_sync_task extends adhoc_task {
|
||||
|
||||
/** @var string Message prefix for mtrace */
|
||||
protected const MTRACE_MSG = 'Synced ldap users';
|
||||
|
||||
@@ -42,7 +41,6 @@ class asynchronous_sync_task extends adhoc_task {
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->set_blocking(false);
|
||||
$this->set_component('auth_ldap');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user