So we upgraded so we could have the remove unused questions task function and it worked great for the first few runs... we have millions we want to get rid of ...
we had it run once every hour at the 15th minute and for the first 4 hours, it worked removing 10,000 at each task is called.
However, on the 5th hour at the 15th minute t is called, I noticed, it's not called at all anymore anywhere in the cron.php. I looked at other cron.php call and none of them have called that task any longer.
I ran it via CLI and got the "Cannot obtain task lock"
... $> ... /cli/schedule_task.php --execute=\\qtype_random\\task\\remove_unused_questions
Execute scheduled task: Remove unused random questions (qtype_random\task\remove_unused_questions)
Cannot obtain task lock
What is wrong and can the lock be released?
removing 10,000 only took a few seconds so I want to increase it further rather than changing it to 100,000 at time.