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

Deprecation of legacy cron

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.2, Future Dev
    • Fix Version/s: None
    • Component/s: Administration, Libraries
    • Testing Instructions:
      Hide

      Run cron a few times, make sure certain plugins (for ex-dropbox, workshop, etc) throw developer notice about using legacy cron (note that there is MDL-61164 to fix those cases).

      Something like -
      ++ Use of legacy cron is deprecated (repository_dropbox_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (repository_filesystem_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (\block_rss_client::cron()). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (workshop_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (workshopallocation_scheduled_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (quiz_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (quiz_statistics_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (chat_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (assign_cron). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (enrol_cohort). Please use scheduled tasks. ++
      ++ Use of legacy cron is deprecated (enrol_self). Please use scheduled tasks. ++ Use of legacy cron is deprecated (enrol_manual). Please use scheduled tasks. ++

      Show
      Run cron a few times, make sure certain plugins (for ex-dropbox, workshop, etc) throw developer notice about using legacy cron (note that there is MDL-61164 to fix those cases). Something like - ++ Use of legacy cron is deprecated (repository_dropbox_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (repository_filesystem_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (\block_rss_client::cron()). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (workshop_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (workshopallocation_scheduled_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (quiz_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (quiz_statistics_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (chat_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (assign_cron). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (enrol_cohort). Please use scheduled tasks. ++ ++ Use of legacy cron is deprecated (enrol_self). Please use scheduled tasks. ++ Use of legacy cron is deprecated (enrol_manual). Please use scheduled tasks. ++
    • Affected Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      In MDL-25499 we introduced the scheduled tasks system and making use of this system and moving away from legacy cron brings a lot of benefits (admin configurable times, tasks prevented from interfering with each other etc etc).

      We should eventually move away from legacy cron and deprecate that system in favour of everything using scheduled tasks.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                9 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated: