-
Improvement
-
Resolution: Fixed
-
Minor
-
4.3
-
MOODLE_403_STABLE
-
MOODLE_404_STABLE
-
MDL-79130-master -
-
6
-
Team Hedgehog 2023 Sprint 4.1, Team Hedgehog 2023 Sprint 4.2, Team Hedgehog 2023 Sprint 4.3, Team Hedgehog 2023 Review 4
Ad-hoc tasks are often used for asynchronous operations, and those that communicate with external systems. Because of this the existing task retry functionality with progressive backoff is good, and manages cases where there is a temporary issue to stop a task completing.
However, ad-hoc tasks retry indefinitely, this is not ideal. If an adhoc task has failed 9 times over the course of 28 hours (current backoff behaviour), it is not going to succeed.
Instead ad-hoc tasks should permanently fail once the max retry period has been exceeded.
We should still keep the ability to re-run these tasks from the UI and CLI, as we can for existing ad-hoc tasks. This will help with some recovery and debugging ops for failed tasks.
We should reuse the cleanup solution that will be introduced in MDL-79128 to manage cleaning up permanently failed tasks.
- has a non-specific relationship to
-
MDL-81000 Ad-hoc task max fail delay not working as intended
- Closed
-
MDL-81201 Ad-hoc task maximum retries value set too low
- Closed
- has been marked as being related by
-
MDL-74775 Time created is reset when adhoc task fails
- Closed
- is blocked by
-
MDL-79128 Tasks: Implement no-retry flag for ad-hoc tasks and clean up records of historical failed tasks
- Closed
- is child of
-
IDEA-211 Task API Improvements
- Closed
- is duplicated by
-
MDL-78819 Scheduled task send_user_notifications should end trying to send email after some time?
- Closed
-
MDL-79333 Ad-hoc tasks are never deleted despite repeated fails
- Closed
- will help resolve
-
MDL-72729 Disabling forum posts message provider causes related adhoc task to continually fail/requeue
- Open
-
MDL-79763 Adhoc Task stuck: convert_submission
- Open
-
MDL-68769 Orphaned adhoc tasks for refresh_mod_calendar_events_task in faildelay loop
- Development in progress
-
MDL-78819 Scheduled task send_user_notifications should end trying to send email after some time?
- Closed