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

Allow disabled tasks to be run from the GUI

XMLWordPrintable

    • MOODLE_310_STABLE
    • MOODLE_311_STABLE
    • MDL-68010-cron-run-disabled
    • Easy
    • Hide
      Setup
      • Go to Site administration > Server > System paths and set Path to PHP CLI setting to the binary of your php. eg. /usr/bin/php
      • Go to Site administration > Security > Site security settings and make sure Cron execution via command line only - cronclionly setting is disabled and Allow 'Run now' for scheduled tasks (tool_task | enablerunnow) setting is enabled.
      Testing
      1. Visit Site administration > Server > Tasks > Scheduled tasks
      2. Confirm that plugins which are disabled, such as \auth_cas\task\sync_task, do not have a "Run now" link
      3. Disable any task, such as core\task\h5p_get_content_types_task.
      4. Confirm that plugins which are enabled but their task is disabled do have a "Run now" link and that it works.

       

      Show
      Setup Go to Site administration > Server > System paths and set Path to PHP CLI setting to the binary of your php. eg. /usr/bin/php Go to Site administration > Security > Site security settings and make sure Cron execution via command line only - cronclionly setting is disabled and Allow 'Run now' for scheduled tasks ( tool_task | enablerunnow)  setting is enabled. Testing Visit Site administration > Server > Tasks > Scheduled tasks Confirm that plugins which are disabled, such as  \auth_cas\task\sync_task , do not have a "Run now" link Disable any task, such as core\task\h5p_get_content_types_task . Confirm that plugins which are enabled but their task is disabled do have a " Run now" link and that it works.  

      The scheduled task lists doesn't link to the 'Run now' page if a task is disabled:

      /admin/tool/task/scheduledtasks.php

      But the page actually still works. This is pretty useful if you've turned something off, then want to run it yourself to see if it is good again and then enable it again

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Simey Lameze Simey Lameze
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 2 minutes
                2h 2m

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