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

Align signatures of ad-hoc and scheduled task CLI scripts

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      The following CLI scripts exist:

      • `admin/tool/task/cli/adhoc_task.php`
      • `admin/tool/task/cli/schedule_task.php`

      These scripts allow for various processing of tasks in Moodle. However, they have different signatures and allow different functionality. The functionality of these scripts should be more fully aligned.

      For `admin/tool/task/cli/adhoc_task.php` the following options should be added

      • `--execute="\some\adhoc\task\class"` Execute all adhoc tasks of particular task
      • `--list` list basic tabularised data of pending adhoc tasks (class, creation date, userid)

      For `admin/tool/task/cli/schedule_task.php` the following option should be added

      • `-execute` or `-execute="*"` execute all scheduled tasks

      Adding an execute all function will also allow for schedule tasks and ad-hoc tasks to be executed independently on individual nodes.

      Because of the differences between the two sorts of tasks we can't fully align them. But this improvement is still worth while

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mattp@catalyst-au.net Matt Porritt
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: