Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
git@git.in.moodle.com:cameron/moodle.git
-
MDL-69106-39 -
MDL-69106-master -
Description
In Moodle 3.5 and earlier, the convert_submissions task was able to start and complete a document conversion. However this was only due to a bug. The conversion would be started and polled on the same cron run.
MDL-63422 fixed the bug, and now conversions are started on a cron run, but not polled. However they are never polled again on subsequent cron runs. This is because the convert_submissions task uses the assignfeedback_editpdf_queue table to know which files to convert, and it removes rows from that table as soon as the task runs - regardless of if the conversion is still in progress.
This isn't a problem in many cases, as when the assignment is viewed through the assignment grader interface it causes the document converter to poll and the conversion can finish. However with a service like https://cloudconvert.com the URLs to poll only last for 24 hours. So if more than 24 hours have elapsed since the initial cron run, it is no longer possible for the assignment grader interface to poll the URL and complete the conversion.
Ideally the initial cron run should start the conversion, and subsequent runs should poll the URL and complete the conversion.