-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
4.1.5, 4.2.2
-
None
-
MOODLE_401_STABLE, MOODLE_402_STABLE
Especially the send_user_notifications adhoc task.
It's highly likely that a site will have a number of users with invalid email addresses for one reason or another. When a notification is sent the task fails and retries. However, it will continue to retry (albeit at a daily interval) forever. There is no facility or option for the task to "give up".
In extremis, this can cause the adhoc task table to be very full of failed tasks. These can start to "crowd" out legitimate tasks so it isn't entirely academic.
It would be prudent to have a task option "give up after n" which deletes (or disables) the task.
- duplicates
-
MDL-79130 Tasks: Ad-hoc tasks shouldn't retry after max fail delay
- Closed
- has a non-specific relationship to
-
MDL-72729 Disabling forum posts message provider causes related adhoc task to continually fail/requeue
- Open
- will be (partly) resolved by
-
MDL-79128 Tasks: Implement no-retry flag for ad-hoc tasks and clean up records of historical failed tasks
- Closed