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

Time created is reset when adhoc task fails

XMLWordPrintable

    • 2
    • Team Hedgehog 2023 Review 4, Team Hedgehog 2024 Sprint 1.1

      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.

            huongn@moodle.com Huong Nguyen
            mikhailgolenkov Misha Golenkov
            Stevani Andolo Stevani Andolo
            Jun Pataleta Jun Pataleta
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 26 minutes
                5h 26m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.