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

Be able to force cron scheduled task definitions in config.php ie schedule and disabled

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Tasks

      Description

      Most admin settings can be overridden in config.php but scheduled tasks cannot.

      Proposing something similar to $CFG->forced_plugin_settings like

       

      $CFG->forced_scheduled_tasks = array(
        "\tool_monitor\task\check_subscriptions" => array(
          "schedule" => "* * * * *",
          "disabled" => 1,
        ),
      );
      

       

      I think a single 'schedule' is nicer than having separate min, hour, day etc attributes.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: