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

Repeatedly try to unenrol users who haven't logged in for $CFG->longtimenosee

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.9
    • 1.7.2, 1.8, 1.9
    • None
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_19_STABLE

      I was just trying to debug something in cron, and saw that the cron seemed to be repeately trying to delete unassign the same student enrolments.

      Looking into this, its the code which is trying to unenrol users who haven't been seen in $CFG->longtimenosee. This seems to be determined from user_lastaccess.

      When we unassign users using role_unassign, we don't remove the records from user_lastaccess.

      So at every cron where cleanup is triggered, we keep trying to unassign the same roles, again again and again..

      I don't know if the solution to this problem is to cleanup from user_lastaccess withing the role assignment functions, or do something more manual?

            skodak Petr Skoda
            poltawski Dan Poltawski
            Nobody Nobody
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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