I want to submit all the students attempts after the closing time of quiz. Is that possible for teacher.The issue i am facing is that some students not getting marks in report and it is showing 'in progress ' instead of 'finish'
After running scheduled task I am getting following error
Execute scheduled task: Updating overdue quiz attempts (mod_quiz\task\update_overdue_attempts)
Cannot obtain task lock
Execute scheduled task: Updating overdue quiz attempts (mod_quiz\task\update_overdue_attempts)
Cannot obtain task lock
I made it ready it is working after changing the notification settings
I disabled notification of quiz submission in messaging settings
https://docs.moodle.org/38/en/Messaging_settings
I disabled notification of quiz submission in messaging settings
https://docs.moodle.org/38/en/Messaging_settings
One problem is I need to run manually after closing the quiz.How can we run automatically that scheduled task .I kept settings as 'open attempts are submited automatically'
You have to get the " Cannot obtain task lock" problem solved first. Raise the https://docs.moodle.org/en/Debugging level to DEVELOPER and post the trace here.
In reply to Visvanath Ratnaweera
Re: Quiz auto submit after the closing time
by Visvanath Ratnaweera -
According to https://moodle.org/mod/forum/discuss.php?d=395623#p1636137 "Cron running on my server. I kept default in task processing". So, have you solved the problem. It is always nice to post a confirmation and how you solved for the benefit of others.
Still it is not running automatically.After completion of quiz i will run cron.php that will finish all my in progress quizes
It is working now.I changed the path siteadministration->server->systempath->
Path to php cli
/usr/bin/php7.4
It is working now
Path to php cli
/usr/bin/php7.4
It is working now
In Debian GNU/Linux at least, /usr/bin/php is a symbolic link to /etc/alternatives/php, which in turn is a symbolic link to /usr/bin/phpX.X. Apparently your Linux is different.