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

Ad-hoc tasks are never deleted despite repeated fails

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.1.5, 4.2.2
    • Tasks
    • 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. 

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

              Created:
              Updated:
              Resolved:

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