Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79333

Ad-hoc tasks are never deleted despite repeated fails


    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.1.5, 4.2.2
    • Tasks
    • None

      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. 

            Unassigned Unassigned
            howardsmiller Howard Miller
            3 Vote for this issue
            7 Start watching this issue


                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.