-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
Several times are stored in the table for each ad-hoc task, and some data we want to expose more easily:
- timecreated - when the task was s (thanks to
MDL-69170) - firststartingtime - the time when the first attempt to run the task was made (thanks to
MDL-80749). - timestarted - the time the most recent attempt to run the task started.
To monitor the health of the system, it would be nice if some of this could be shown in Admin > Server > Tasks > Ad hoc tasks. E.g.
- time from task being schedule to actually completing is what users care about
- the total time distribution for how long tasks take - eg which tasks are consistently slow, or have a lumpy distriction
- what is the total run time for tasks, eg some tasks are fast but there are many of them (like forum email adhoc tasks). We want to know where to spend optimization time.
I guess the difficulty is that the task log display is used for both Ad-hoc and Scheduled tasks, and there is not really an equivalent for them.
Adding this to the SQL is not really a problem, It is just a left join. The question is how to dispaly it. I suppose options include:
- Always add extra columns to the report, and live with them being blank for scheduled tasks.
- Cunningly analyse the filter conditions being applied (Class name and/or Type) and show the extra columns only if everything in the report is Ad-hoc. Does report-builder support this?
- Given up enhancing Moodle core, and everyone who wants this can write their own reports.
- has a non-specific relationship to
-
MDL-69170 Add a timecreated field to the adhoc task table
-
- Closed
-
-
MDL-80749 Ad-hoc task: We should keep the original start time of the task
-
- Closed
-
- has been marked as being related by
-
MDL-85176 Have the cron task manager intelligently ramp down cron as a maintenance window approaches
-
- Open
-
-
MDL-85493 Be able to filter cron cli to 'fast' or 'slow' tasks
-
- Open
-
- will be (partly) resolved by
-
MDL-73292 Report builder urls with filters, sort, pagination should be bookmarkable / deep linkable
-
- Development in progress
-
-
MDL-82173 Improve task reports and logs for custom data, task id, and exposing errors
-
- Development in progress
-