Moodle

admin cron runs enrollments before auth plugin crons

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.4
  • Fix Version/s: 1.9.5
  • Component/s: Enrolments
  • Labels:
    None
  • Database:
    Any
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

When running the admin/cron.php the enrollment plugins cron runs before the authentication plugins crons run. This means that if I am attempting to enroll a user that doesn't have an account that in moodle the enrollment will fail and have to wait untilt he next cron run. It makes more sense to have the authentication plugin's cron to run before the enrollment plugin's cron.

I have attached a simple patch that modifies the admin/cron.php to do this.

Activity

Hide
Petr Škoda (skodak) added a comment -

done, thanks!

Show
Petr Škoda (skodak) added a comment - done, thanks!
Hide
Sam Hemelryk added a comment -

Confirmed patch, everything looks/works well. Thanks

Show
Sam Hemelryk added a comment - Confirmed patch, everything looks/works well. Thanks

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: