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

refresh_mod_calendar_events_task ad-hoc task should not run more than once

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Disable automatic cron
      2. Run cron manually (to clear the queue of ad-hoc tasks)
      3. Duplicate an activity in a course several times
      4. In another course duplicate another activity several times
      5. Run cron manually, make sure the ad-hoc task refresh_mod_calendar_events_task ran twice - once for each course
      6. Enable back automatic cron if you disabled it in #1
      Show
      Disable automatic cron Run cron manually (to clear the queue of ad-hoc tasks) Duplicate an activity in a course several times In another course duplicate another activity several times Run cron manually, make sure the ad-hoc task refresh_mod_calendar_events_task ran twice - once for each course Enable back automatic cron if you disabled it in #1
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      wip-MDL-59768-master

      Description

      I don't run cron too often (on my dev machine) and when I run it I have 30 pages of the same ad-hoc task

      Execute adhoc task: core\task\refresh_mod_calendar_events_task
      

      It really only needs to run once per cron. Maybe when we schedule a new one we can check if it is already scheduled?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Jake Dallimore
              Integrator:
              David Monllaó
              Tester:
              Andrew Nicols
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Sep/17