Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11604 cron execution, review, fix and improve
  3. MDL-11661

Problem in cron with notify_login_failures() not scaling well

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Authentication
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I think I've found the culprit of this original bug:

      the notify_login_failures() is failing (without error), causing the cron process to stop when clean-up tasks are executed! Not analised if it's due to one "excess" of records or what, but needs to be traced and fixed for sure!

      Note that some cleanup-tasks like sync_metacourses(), setnew_password_and_mail(), tag_cron(), cleanup_contexts()... are never executed in some sites due to this problem.

      I guess we can chnge current behaviour to one more robust (scaling well) alternative. Will research it this weekend.

      Call this the NOTIFY_LOGIN_FAILURES_PROBLEM.

      BTW, I've stopped those notifications in one big server to test the new implementation when ready.

      Ciao

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08