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

Cron does not process ad hoc tasks which have been queued since cron started

XMLWordPrintable

    • MOODLE_38_STABLE
    • MOODLE_37_STABLE
    • MDL-66927-run-new-adhoc
    • Hide

      1) Install this plugin just to make testing easier:

      https://github.com/catalyst/moodle-tool_testtasks

      2) Run cron to completion just to make sure it is empty. The next steps need to be done relatively quickly withing the next minute 

      php admin/cli/cron.php 
      

      3) In terminal 1 queue up a 5 second task (5 to make it easy to just around tabs quick enough)

      php admin/tool/testtasks/cli/queue_adhoc_tasks.php -d=5 -n=1
      

      4) In terminal 2 start cron, it should start processing the 5 second task above

      php admin/cli/cron.php

      5) Quickly jump back to terminal 1 and queue up a second 5 second task

      php admin/tool/testtasks/cli/queue_adhoc_tasks.php -d=5 -n=1
      

      6) Confirm that both 5 seconds tasks are processed 

       

      Show
      1) Install this plugin just to make testing easier: https://github.com/catalyst/moodle-tool_testtasks 2) Run cron to completion just to make sure it is empty. The next steps need to be done relatively quickly withing the next minute  php admin/cli/cron.php  3) In terminal 1 queue up a 5 second task (5 to make it easy to just around tabs quick enough) php admin/tool/testtasks/cli/queue_adhoc_tasks.php -d= 5 -n= 1 4) In terminal 2 start cron, it should start processing the 5 second task above php admin/cli/cron.php 5) Quickly jump back to terminal 1 and queue up a second 5 second task php admin/tool/testtasks/cli/queue_adhoc_tasks.php -d= 5 -n= 1 6) Confirm that both 5 seconds tasks are processed   

      If the adhoc  task part of the cron process has started, and new tasks are added, these are not processed until the next time cron is run.

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Matt Porritt Matt Porritt
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

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