MDL-81494 adhoc_task: Added missing space for query condition

This commit is contained in:
Huong Nguyen
2024-04-10 17:15:55 +07:00
parent b621a7e4b3
commit 6012fa0af6
+1 -1
View File
@@ -365,7 +365,7 @@ class cron {
}
// Only rerun the failed tasks that allow to be re-tried or have the remaining attempts available.
$where .= 'AND (attemptsavailable > 0 OR attemptsavailable IS NULL)';
$where .= ' AND (attemptsavailable > 0 OR attemptsavailable IS NULL)';
$tasks = $DB->get_records_sql("SELECT * from {task_adhoc} WHERE $where", $params);
foreach ($tasks as $t) {
self::run_adhoc_task($t->id);