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:
@@ -705,11 +705,7 @@ abstract class advanced_testcase extends base_testcase {
|
||||
}
|
||||
|
||||
$task->set_lock($lock);
|
||||
if (!$task->is_blocking()) {
|
||||
$cronlock->release();
|
||||
} else {
|
||||
$task->set_cron_lock($cronlock);
|
||||
}
|
||||
$cronlock->release();
|
||||
|
||||
\core\cron::prepare_core_renderer();
|
||||
\core\cron::setup_user($user);
|
||||
|
||||
Reference in New Issue
Block a user