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

Ad-hoc tasks are never deleted despite repeated fails

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Minor
    • None
    • 4.1.5, 4.2.2
    • Tasks
    • None
    • MOODLE_401_STABLE, MOODLE_402_STABLE

    Description

      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. 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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