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

Scheduled Task: Run now is not appearing for Local Plugins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0.5
    • 4.0.2, 4.0.4
    • Tasks
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide
      1. Log in as admin
      2. Make sure that the admin setting pathtophp is set correctly.
      3. Install demo plugin mdl75308.zip (copy to site local/ directory)
      4. Navigate to Server > Tasks > Scheduled tasks in site administration
      5. Confirm MDL-75308 Demo task task has a Run now button
      6. Press said Run now button
      7. Confirm you want to run the MDL-75308 Demo task task
      8. Confirm task executes successfully (you should see Success in the task output)
      9. Back on the scheduled tasks page, take note of a plugin with the "Run now" link shown (e.g. "Background processing for assignment module")
      10. Open a new tab and go to Site administration / Plugins and disable the plugin that the task belongs to (e.g. from the previous example: Plugins > Activities > Manage activities, then hide the Assignment plugin)
      11. Reload the scheduled tasks page
      12. Confirm that the scheduled task does not show the "Run now" link anymore.
      Show
      Log in as admin Make sure that the admin setting pathtophp is set correctly. Install demo plugin mdl75308.zip (copy to site local/ directory) Navigate to Server > Tasks > Scheduled tasks in site administration Confirm MDL-75308 Demo task task has a Run now button Press said Run now button Confirm you want to run the MDL-75308 Demo task task Confirm task executes successfully (you should see Success in the task output) Back on the scheduled tasks page, take note of a plugin with the " Run now " link shown (e.g. " Background processing for assignment module ") Open a new tab and go to Site administration / Plugins and disable the plugin that the task belongs to (e.g. from the previous example: Plugins > Activities > Manage activities, then hide the Assignment plugin) Reload the scheduled tasks page Confirm that the scheduled task does not show the "Run now" link anymore.

      We have noticed that for Local Plugins the "Run now" option at scheduled tasks are not seem to be appearing. It seems that the 'run now' is now hidden for plugins that are not enabled, but a local plugin have no way to state if they are actually enabled or not. 

      We discussed it on https://github.com/danmarsden/moodle-local_recompletion/issues/53

      Where danmarsden stated that the solution might be to modify the core\pluginfo\local class to add a get_enabled_plugins() function and just return all local plugins in the site. 

      From what I understand it should be fixed in Moodle core code itself, and cannot be fixed in the plugins. 

        1. 12_MDL-75308_master.png
          13 kB
          John Edward Pedregosa
        2. 12_MDL-75308_v400.png
          11 kB
          John Edward Pedregosa
        3. 5_MDL-75308_master.png
          15 kB
          John Edward Pedregosa
        4. 5_MDL-75308_v400.png
          14 kB
          John Edward Pedregosa
        5. 8_MDL-75308_master.png
          39 kB
          John Edward Pedregosa
        6. 8_MDL-75308_v400.png
          39 kB
          John Edward Pedregosa

            pholden Paul Holden
            gemguardian Gemma Lesterhuis
            Dan Marsden Dan Marsden
            Jun Pataleta Jun Pataleta
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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