-
Bug
-
Resolution: Fixed
-
Minor
-
2.8.7, 2.9.1, 3.1.3, 3.2.1
-
MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MDL-50719-fast-locks -
A long running scheduled task slows down all cron processing in the following way.
get_next_scheduled_task gets scheduled tasks that are due to run in order by lastruntime. A long running task that will repeatedly come up in the list and the get_next_scheduled_task will attempt to get its lock before trying the next task in the list. The result is that each iteration of the scheduled tasks gets an extra 10 seconds or so of time as it waits (over and over, again) for the long-running task to time out.
This also greatly increases the occurence of the locktimeout exception because the task lock attempt occurs within a cron lock.
- has a non-specific relationship to
-
MDL-65072 All lock api implementations usleep even when the timeout is zero which limits ad hoc concurrency throughput
- Closed
- has been marked as being related by
-
MDL-51707 Long running tasks can run twice
- Closed
-
MDL-47480 Scheduled Tasks are returned in random order by get_next_scheduled_task
- Closed
-
MDL-47934 locktimeout exception in scheduled tasks is not very informative/exceptional
- Closed
-
MDL-50694 Cron message "The operation timed out while waiting for a lock" isn't really an error
- Closed
-
MDL-57852 Disable cron at site config level via gui and cli with fast shutdown
- Closed