Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73846

"Prepare submissions for annotation" task tries to process the whole queue in one go

    XMLWordPrintable

Details

    Description

      The '\assignfeedback_editpdf\task\convert_submissions' scheduled task has no limit when selecting records from the mdl_assignfeedback_editpdf_queue table
      https://github.com/moodle/moodle/blob/589724236163476bdcf2310c2542b992dbfb9c7b/mod/assign/feedback/editpdf/classes/task/convert_submissions.php#L57

      The task basically tries to process the whole queue in one go.

      When there are lots of records in the queue, the tasks runs for many hours and then eventually dies or gets terminated. It seems like having a limit here will give admins more control under the task.

      Attachments

        Activity

          People

            mikhailgolenkov Misha Golenkov
            mikhailgolenkov Misha Golenkov
            Dmitrii Metelkin Dmitrii Metelkin
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Mar/22

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m