Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-8223

Cron tasks will NEVER run (Configurable Reports plugin)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.7.7, 3.8.4, 3.9.1
    • None
    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      I just found out that due to bug in Configurable Reports plugin, its Cron tasks will never run.

      I am using the latest Configurable Reports plugin, version 3.8.0 (2019122000).

      In block_configurable_reports.php method cron() of class block_configurable_reports, lines 182-185:

      $lastcron = $DB->get_field('block', 'lastcron', array('name' => 'configurable_reports'));
      if (!$lastcron and ($lastcron + $this->cron < time()) ) {
        return false;
      }
      

       

      The condition to exit from method by returning false should be if ($lastcron …, not (!$lastcron …) as it is now. Otherwise whenever the plugin never ever run its cron tasks before, it will always return, as $lastcron will be false.

            jleyva Juan Leyva
            furlosk Robert Toth
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.