Quiz auto submit after the closing time

Quiz auto submit after the closing time

by manoj joseph -
Number of replies: 8

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'

Average of ratings: -
In reply to manoj joseph

Re: Quiz auto submit after the closing time

by manoj joseph -
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
In reply to manoj joseph

Re: Quiz auto submit after the closing time

by manoj joseph -
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
In reply to manoj joseph

Re: Quiz auto submit after the closing time

by manoj joseph -
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'
In reply to manoj joseph

Re: Quiz auto submit after the closing time

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
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 -
Picture of Particularly helpful Moodlers Picture of Translators
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.
In reply to Visvanath Ratnaweera

Re: Quiz auto submit after the closing time

by manoj joseph -
Still it is not running automatically.After completion of quiz i will run cron.php that will  finish all my in progress quizes
In reply to manoj joseph

Re: Quiz auto submit after the closing time

by manoj joseph -
It is working now.I changed the path siteadministration->server->systempath->
Path to php cli
/usr/bin/php7.4

It is working now


Average of ratings: Useful (1)
In reply to manoj joseph

Re: Quiz auto submit after the closing time

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
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.