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

Adhoc tasks for backup and restore be stuck in endless faildelay loop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Peer review in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Backup, Tasks

      Description

      This might be 3 distinct bugs but they are all going to be similar root causes and all related:

      core\task\course_backup_task,Can't find data record in database table course.

      core\task\asynchronous_restore_task,Can't find data record in database table backup_controllers.

      core\task\asynchronous_backup_task,error/backup_controller_dbops_loading_invalid_controller

      I suspect all are race conditions between a course being flagged for backup and something in the course changing which makes the async task corrupted. I think in all cases the backup should attempt to either gracefully recover as best it can and keep going, or it should catch certain known exceptions and just swallow them and let the adhoc task finished.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peterburnett Peter Burnett
              Reporter:
              brendanheywood Brendan Heywood
              Peer reviewer:
              Kevin Pham Kevin Pham
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated: