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

Scheduled Tasks are returned in random order by get_next_scheduled_task

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.2, 2.8.6, 2.9, 3.0, 3.1.2
    • Fix Version/s: 2.8.7, 2.9.1
    • Component/s: Libraries
    • Labels:

      Description

      There is no order-by on the query to load the list of scheduled tasks - so they will be returned in DB dependant order. This occasionally will break the unit tests - and possibly will not give the best "fairness" result for the scheduler.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ankit_frenz Ankit Agarwal
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                6/Jul/15