Tim Hunt
0dcd79d2e8
MDL-76649 quiz statistics task: output more useful trace info
...
At the moment, quiz_statistics\task\recalculate gives no useful
information about what it is doing, which makes it hard to investigate
if the task fails. This commit makes it more usefully verbose.
Also, following this change, one instance of this task will not
run for more than one hour at a time.
As part of this commit, I have added a new helper mtrace_exception.
to consistently log exceptions in scheduled tasks. It is sad to
add a new function to moodlelib.php, but that seemed the logical place.
Looking at other tasks, this method is badly needed. Many are just
logging the ->getMessage() which is normaly insufficient for proper
debugging. However, swiching all existing tasks to use the new function
will need to wait for a future MDL.
2023-01-09 13:46:29 +00:00
..
2022-03-05 14:19:50 +01:00
2021-11-15 11:49:35 +08:00
2022-12-28 11:14:50 +00:00
2022-05-07 20:33:10 +02:00
2022-12-29 09:44:00 +07:00
2022-09-07 11:15:52 +07:00
2022-12-06 10:38:40 +03:00
2022-12-13 20:32:01 +08:00
2022-08-26 16:34:24 +02:00
2022-11-05 10:08:13 +01:00
2021-10-26 17:19:11 +02:00
2022-11-23 00:14:28 +00:00
2022-01-10 10:36:23 +01:00
2022-01-14 16:18:39 +01:00
2022-08-26 16:34:24 +02:00
2022-11-10 13:19:42 +01:00
2022-12-13 14:48:16 +00:00
2022-02-01 18:10:36 +01:00
2022-01-20 14:48:22 +01:00
2022-08-26 16:34:24 +02:00
2021-12-19 12:22:14 +01:00
2020-11-25 21:35:14 +00:00
2021-01-22 11:30:38 +08:00
2020-09-18 10:01:09 +08:00
2022-01-11 12:07:20 +01:00
2022-04-04 14:43:22 +08:00
2022-11-11 12:54:11 +08:00
2021-01-18 09:30:02 +08:00
2021-08-10 09:37:31 +01:00
2022-01-11 10:41:08 +01:00
2022-07-06 05:25:29 +02:00
2022-09-07 23:56:29 +08:00
2022-02-01 18:10:36 +01:00
2022-02-01 18:10:36 +01:00
2021-12-09 16:11:14 +02:00
2022-02-11 10:07:39 +08:00
2022-03-08 10:04:20 +01:00
2022-01-14 12:45:54 +01:00
2022-08-26 16:34:24 +02:00
2021-03-19 10:19:10 +02:00
2021-06-21 12:03:58 +10:00
2021-10-27 06:24:55 +02:00
2022-01-11 12:07:20 +01:00
2022-02-01 18:10:36 +01:00
2022-02-01 18:10:36 +01:00
2020-11-25 20:44:03 +00:00
2022-10-27 16:50:17 +07:00
2022-11-04 16:51:24 +01:00
2022-12-05 15:03:09 +00:00
2022-11-17 07:04:51 +01:00
2022-12-02 14:58:38 +08:00
2022-12-29 09:44:00 +07:00
2021-12-17 14:21:02 +01:00
2021-12-21 09:24:00 +08:00
2021-12-09 14:19:33 +02:00
2021-02-17 20:59:19 +01:00
2022-11-08 18:10:12 +07:00
2021-03-17 09:30:04 +07:00
2020-09-17 14:16:59 +08:00
2022-04-06 23:40:15 +08:00
2022-06-08 10:08:10 +08:00
2022-05-04 14:45:00 +06:00
2021-10-28 17:43:49 +02:00
2022-10-17 10:55:41 +01:00
2020-11-06 09:30:08 +08:00
2022-12-02 09:42:29 +01:00
2022-12-15 17:19:08 +00:00
2022-02-03 19:14:28 +08:00
2021-05-26 13:51:46 +08:00
2020-11-30 17:25:19 +01:00
2021-06-30 15:04:16 +01:00
2020-05-04 16:01:12 +01:00
2022-10-31 14:19:31 +13:00
2022-03-17 15:34:26 +07:00
2022-12-14 09:57:19 +01:00
2022-12-05 11:39:53 +01:00
2021-11-16 10:31:42 +08:00
2021-11-23 16:15:08 +01:00
2022-11-11 12:54:11 +08:00
2022-03-31 16:49:03 +01:00
2022-05-05 09:21:22 +01:00
2022-05-05 09:21:22 +01:00
2022-03-01 12:01:59 +01:00
2021-02-28 19:43:37 +01:00
2021-09-17 10:46:10 +02:00
2022-07-01 13:55:53 +02:00
2021-06-21 08:41:48 +02:00
2021-06-14 09:31:30 +01:00
2022-11-10 12:42:19 +01:00
2021-09-21 10:10:02 +08:00
2020-04-24 15:56:38 +02:00
2021-10-26 17:19:11 +02:00
2020-09-15 10:37:06 +02:00
2022-01-27 15:22:15 +01:00
2022-10-11 16:59:59 +01:00
2023-01-09 13:46:29 +00:00
2021-04-21 11:22:25 +02:00
2022-04-07 12:06:38 +06:00
2021-03-03 12:03:40 +08:00
2022-10-05 18:30:08 +01:00
2022-11-24 16:41:07 +08:00
2022-09-14 11:41:47 +02:00
2022-02-11 12:01:26 +08:00
2022-11-10 08:48:27 +08:00
2021-06-25 12:57:20 +12:00
2021-12-13 09:49:35 +08:00
2022-07-14 11:12:19 +10:00
2021-02-15 16:53:37 +01:00
2022-11-05 10:08:13 +01:00
2021-11-17 20:56:36 +01:00
2023-01-09 13:46:29 +00:00
2022-10-07 16:18:13 +11:00
2022-11-10 06:19:31 +11:00
2022-08-12 04:15:20 +02:00
2023-01-09 13:46:29 +00:00
2022-06-08 10:54:00 +10:00
2021-10-17 21:52:05 +07:00
2022-11-23 09:12:02 +07:00
2022-12-07 21:40:18 +08:00