-
Bug
-
Resolution: Fixed
-
Blocker
-
4.4
-
MOODLE_404_STABLE
-
MOODLE_404_STABLE
-
MDL-81494-main -
- Create an instance with MySQL or MariaDB as a DB engine.
- Run: php admin/cli/adhoc_task.php --failed
- Verify that you will not see any error related to dmlreadexception.
-
1
-
Team Hedgehog 2024 Sprint 1.4
This line needs to have extra space.
Otherwise, the query cannot be executed on MySQL
Default exception handler: Error reading from database Debug: FUNCTION marydevmoodledemo.0AND does not exist
|
SELECT * from mdl_task_adhoc WHERE faildelay > 0AND (attemptsavailable > 0 OR attemptsavailable IS NULL) |
[array (
|
)]
|
Error code: dmlreadexception
|
* line 494 of /lib/dml/moodle_database.php: dml_read_exception thrown |
* line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end() |
* line 1398 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end() |
* line 369 of /lib/classes/cron.php: call to mysqli_native_moodle_database->get_records_sql() |
* line 154 of /admin/cli/adhoc_task.php: call to core\cron::run_failed_adhoc_tasks() |
- is a regression caused by
-
MDL-79128 Tasks: Implement no-retry flag for ad-hoc tasks and clean up records of historical failed tasks
- Closed