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

Add a new admin setting for scheduled tasks

XMLWordPrintable

    • MOODLE_310_STABLE
    • MOODLE_400_STABLE
    • MDL-70230-master
    • Hide
      1. Go to "admin/settings.php?section=langsettings" URL as admin.
      2. Check that the bottom item is the description of the status of the langimport task.
      3. Click on the "details" link and check that the scheduledtasks.php page is loaded, pointing to the row of the langimport task, just below the fixed header.
      Show
      Go to "admin/settings.php?section=langsettings" URL as admin. Check that the bottom item is the description of the status of the langimport task. Click on the "details" link and check that the scheduledtasks.php page is loaded, pointing to the row of the langimport task, just below the fixed header.

      Context

      Sometimes admin settings define values that affect the behaviour of scheduled tasks.

      Problem/Idea to improve

       It would be very good to have the status (active, inactive) of the related scheduled task, and a shortcut for the configuration of the shcheduled task.

      Proposal

      Add an admin header-like setting that provides a plain admin setting informing about its status (it's running or not) and a link to its configuration, as a shortcut for updating the task if necessary.

      This admin setting, together with the rest of admin settings related to that, would provide the whole big picture of the task status and settings.

      The class could have this constructor: "admin_setting_scheduled_task(string $name, string $scheduledtaskname[, string $extradescription])" where:

      1. $name is the setting name, as always.
      2. $scheduledtaskname is the name of the scheduled task, as full classpath name.
      3. (optional) $extradescription is a string which can help adding context to the setting page for this given task. This admin setting already provides some lines with the status, the class name and its description. However, we could imagine several tasks settings in a single page, and would help admin users to understand/remember what they do or are related to.

       

        1. MDL-70230_Test Passed.png
          MDL-70230_Test Passed.png
          163 kB
        2. move-to-the-right.png
          move-to-the-right.png
          124 kB
        3. not applied.png
          not applied.png
          33 kB
        4. not applied-1.png
          not applied-1.png
          33 kB
        5. positioning_in_tasks_list.png
          positioning_in_tasks_list.png
          28 kB
        6. screenshot-1.png
          screenshot-1.png
          15 kB
        7. task_status.png
          task_status.png
          30 kB

            jpahullo Jordi Pujol-Ahulló
            jpahullo Jordi Pujol-Ahulló
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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