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

Add an adhoc task runner

XMLWordPrintable

    • MOODLE_36_STABLE
    • MOODLE_36_STABLE
    • MDL-62651-master
    • Hide
      1. Run the adhoc_task.php script without args:

        php admin/tool/task/cli/adhoc_task.php
        

        1. *Confirm you see the help
      2. Run the adhoc_task.php script asking for help:

        php admin/tool/task/cli/adhoc_task.php --help
        

        1. *Confirm you see the help
      3. Run attached testadhoc.php script to queue a new adhoc task.
      4. Run it again (you sadist you!)
      5. Run the adhoc_task.php script:

        php admin/tool/task/cli/adhoc_task.php --execute
        

        1. Confirm that the job ran twice
          ##
      6. Run attached testadhoc.php script to queue a new adhoc task.
      7. Run the adhoc_task.php script:

        php admin/tool/task/cli/adhoc_task.php --execute --showsql --showdebugging
        

        1. Confirm that the job ran with SQL + debugging output
      Show
      Run the adhoc_task.php script without args: php admin/tool/task/cli/adhoc_task.php *Confirm you see the help Run the adhoc_task.php script asking for help: php admin/tool/task/cli/adhoc_task.php --help *Confirm you see the help Run attached testadhoc.php script to queue a new adhoc task. Run it again (you sadist you!) Run the adhoc_task.php script: php admin/tool/task/cli/adhoc_task.php --execute Confirm that the job ran twice ## Run attached testadhoc.php script to queue a new adhoc task. Run the adhoc_task.php script: php admin/tool/task/cli/adhoc_task.php --execute --showsql --showdebugging Confirm that the job ran with SQL + debugging output

      We are introducing gradually more adhoc tasks to Moodle.
      At present you can choose to run scheduled tasks either via cron, or via admin/tool/task/cli/scheduled_task.php.
      This patch proposes adding a new adhoc task runner to the same aim.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Damyon Wiese Damyon Wiese
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m

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