-
Improvement
-
Resolution: Fixed
-
Minor
-
4.4.6, 4.5.2, 5.0
-
MOODLE_404_STABLE, MOODLE_405_STABLE, MOODLE_500_STABLE
-
MOODLE_500_STABLE
-
-
-
At the moment, when a lock is claimed, but not relesed, you get an error like (e.g. from MDL-84695):
Message: Coding error detected, it must be fixed by a programmer: A lock was created but not released at: /var/www/html/lib/classes/task/manager.php on line 831
|
but, of course, that is not helpful at all. So, one secheduled task did something wrong, but which one?
I think we need to change it to have a full stack trace.
Also, currently the code was trying to only throw exceptions about un-released locks during PHPunit tests. However, I am pretty sure defined('PHPUNIT_TEST') is alwasy true. Anyway, I changed that to defined('BEHAT_SITE_RUNNING') || PHPUNIT_TEST || $CFG->debugdeveloper which I think is better.
- Discovered while testing
-
MDL-84695 get_qbank_ids_of_type_in_course also yields modules of other types
-
- Waiting for peer review
-