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

    • MOODLE_33_STABLE
    • MOODLE_33_STABLE
    • wip-MDL-59768-master
    • 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

    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

              marina Marina Glancy
              marina Marina Glancy
              Jake Dallimore Jake Dallimore
              David Monllaó David Monllaó
              Andrew Lyons Andrew Lyons
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Sep/17