danmarsden / moodle-local_recompletion

Allows course recompletion
28 stars 45 forks source link

Error on Recompletion Task - failed to execute during scheduled cron run time - plugin version 2024071103 (2024071103) moodle 4.4+ (Build: 20240510) #188

Closed ShirleyGregorczyk closed 2 weeks ago

ShirleyGregorczyk commented 1 month ago

Received an error alert that the Recompletion task failed to execute on 24-07-2024 at its scheduled run time.

Detail Error log.

Execute scheduled task: Check for users that need to recomplete (local_recompletion\task\check_recompletion) ... started 21:29:01. Current memory use 22.9 MB. ... used 112 dbqueries ... used 0.1792209148407 seconds Scheduled task failed: Check for users that need to recomplete (local_recompletion\task\check_recompletion),A required parameter (sesskey) was missing Backtrace:

Any insights, I how to correct that? Plugin was recently upgraded to current version 2024071103 (2024071103)

ShirleyGregorczyk commented 1 month ago

The Cron job displays a Clear button on the course recompletion task. If we deploy the clear button, will this help us to resume our recompletions tasks, or will it muddy the next steps to restore the functionality?

danmarsden commented 3 weeks ago

Hi @ShirleyGregorczyk - I suspect the PR I have in #192 will fix this for you - let me know if you get a chance to test it (you should probably try on a testing environment before you run it on prod.) - If you can't test this easily it's likely to sit here in the backlog for a while until I get a chance to look further.

ShirleyGregorczyk commented 2 weeks ago

Tested the PR in #192 - and that corrected my issue. Thank you for supplying the code fix.

danmarsden commented 2 weeks ago

Thanks for that! - I've merged it in now.