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

Add an adhoc task runner

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
      MDL-62651-master

      Description

      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.

        Attachments

        1. testadhoc.php
          0.1 kB
          Andrew Nicols
        2. Verified_MDL-62651.png
          244 kB
          Gladys Basiana

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Gladys Basiana
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18

                  Time Tracking

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