-
Bug
-
Resolution: Fixed
-
Major
-
3.7.3, 3.7.4, 3.8
-
PostgreSQL
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-67204-master -
Currently the cron_task implementation of the assign module is calling the corresponding static cron function (mod/assign/locallib.php).
One part of the assign cron function is to check the "allowsubmissionsfromdate" with the current date and "alwaysshowdescription = 0"
to show the event description only after the "allowsubmissionsfromdate".
The SQL query uses the "lastcron" field from the "modules" table which is not updated after the task run.
The not updated "lastcron" field results in updates of the assignment calendar events on every task run -> a lot of log entries
Moreover I think the field "lastcron" shouldn't be use anymore because tasks have there own "lastruntime" in the task_scheduled table.
I would suggest to use "lastruntime" from the "task_scheduled" table to build the time window for the assignment query.
- will help resolve
-
MDL-66597 Activities are triggering too many events
-
- Closed
-