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

Statistics gathering not works when run from tool/task/cli/shedule_task.php

    XMLWordPrintable

    Details

      Description

      Trying to run stats by running "php admin/tool/task/cli/shedule_task.php --task='\core\task\cli\stats_cron_task'" raises error "Call to undefined function set_cron_lock() in /var/www/lib/statslib.php on line 166"
      This is because cron_run function includes adminlib.php while admin/tool/task/cli/shedule_task.php does not include it.
      This may affect other sheduler tasks, called with shedule_task.php and using set_cron_lock() call

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              vadimon Vadim Dvorovenko
              Peer reviewer:
              Simey Lameze
              Integrator:
              Damyon Wiese
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Sep/14