Skip to content

Commit

Permalink
Fix #181: Queue adhoc tasks by duration
Browse files Browse the repository at this point in the history
  • Loading branch information
djarran committed Nov 20, 2024
1 parent ff91925 commit 451ae84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function reengagement_crontask() {
INNER JOIN {course_modules} cm on cm.instance = r.id
JOIN {modules} m on m.id = cm.module
WHERE m.name = 'reengagement' AND cm.deletioninprogress = 0
ORDER BY r.id ASC";
ORDER BY r.duration ASC";

$reengagements = $DB->get_recordset_sql($reengagementssql);
if (!$reengagements->valid()) {
Expand Down

0 comments on commit 451ae84

Please sign in to comment.