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:
Andrew Nicols
2024-04-12 12:34:20 +08:00
parent a1b0fe9b9c
commit 6f1df841f7
19 changed files with 49 additions and 68 deletions
+1 -5
View File
@@ -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);