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

Add more filters to task log /admin/tasklogs.php

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Tasks
    • Testing Instructions:
      Hide
      1. Run php admin/cli/cron.php.
      2. View your database schema in your favourite software (eg. adminer) and set one of the values for the column 'result' in 'mdl_task_log' to 1 (make note of what the task name is).
      3. Visit 'Site administration' > 'Server' > 'Tasks' > 'Task logs'.
      4. Set the 'Status' to 'Fail' and click 'Filter'.
      5. Confirm the task you altered in the database appears.
      6. Set the 'Status' to 'Pass' and click 'Filter' and confirm it is now not in the list.
      7. Set the 'Status' to 'All' and click 'Filter' to get the form back to how it was.
      8. Enable the 'Duration' field and set it to 10 seconds and click 'Filter'.
      9. Confirm the '\core\task\build_installed_themes_task' is the only task listed.
      Show
      Run php admin/cli/cron.php . View your database schema in your favourite software (eg. adminer) and set one of the values for the column 'result' in 'mdl_task_log' to 1 (make note of what the task name is). Visit 'Site administration' > 'Server' > 'Tasks' > 'Task logs'. Set the 'Status' to 'Fail' and click 'Filter'. Confirm the task you altered in the database appears. Set the 'Status' to 'Pass' and click 'Filter' and confirm it is now not in the list. Set the 'Status' to 'All' and click 'Filter' to get the form back to how it was. Enable the 'Duration' field and set it to 10 seconds and click 'Filter'. Confirm the '\core\task\build_installed_themes_task' is the only task listed.
    • Pull Master Branch:
      MDL-67686_master

      Description

      Typical business questions:

      1) what happened for a particular task, somewhere around 3 days ago

      2) what are all the slow tasks?

      3) which tasks are busted

       

      Proposed filters:

      a) start / stop time aka beginning / end of period of any task overla

      b) minimum duration time, ie find all tasks which took longer than 5 mins

      c) result status, ie show all tasks with a faildelay

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              brendanheywood Brendan Heywood
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: