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

Time created field is reset when adhoc task fails

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.11.7, 4.0.1
    • None
    • Tasks
    • MOODLE_311_STABLE, MOODLE_400_STABLE

    Description

      As I can see when adhoc_task_failed() is triggered for an adhoc task it calls record_from_adhoc_task() https://github.com/moodle/moodle/blob/5e5e12e0634f176302462f923af02ab5751683d6/lib/classes/task/manager.php#L791 which resets adhoc task timecreated field https://github.com/moodle/moodle/blob/5e5e12e0634f176302462f923af02ab5751683d6/lib/classes/task/manager.php#L282

      Due to this bug we lose tracking of when the task was actually created.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mikhailgolenkov Misha Golenkov
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: