-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.6
Getting this in a 4.1 site:
f0709e5c8ef3:24556 2023-11-23 17:04:37 Scheduled task failed: Send report schedules (core_reportbuilder\task\send_schedules),Invalid user
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 Debug info:
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 SELECT id FROM {user} WHERE id = ? AND deleted = ?
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 [array (
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 0 => 279,
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 1 => 0,
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 )]
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 Backtrace:
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 1630 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 6706 of /lib/accesslib.php: call to moodle_database->get_record()
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 173 of /reportbuilder/classes/local/helpers/schedule.php: call to context_user::instance()
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 91 of /reportbuilder/classes/task/send_schedule.php: call to core_reportbuilder\local\helpers\schedule::get_schedule_report_file()
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 59 of /reportbuilder/classes/task/send_schedules.php: call to core_reportbuilder\task\send_schedule->execute()
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 263 of /lib/cronlib.php: call to core_reportbuilder\task\send_schedules->execute()
|
f0709e5c8ef3:24556 2023-11-23 17:04:37 * line 167 of /admin/cli/scheduled_task.php: call to cron_run_inner_scheduled_task()
|
I've confirmed the user was deleted, this task should gracefully ignore it and move on and if needed clean up records behind it.