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

Scheduled tasks not run again with a keepalive cron runner

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • MDL-77693-master
    • Hide
      1. In a terminal window, run cron with no timeout just to clear any old tasks:

        php admin/cli/cron.php -k=0
        

      2. In the first run the cron runner with no args to get a cron runner with a three-minute

        sleep 60; php admin/cli/cron.php
        

      3. Let it run
        1. Confirm that you can find the mod_forum\task\cron_task scheduled task
      4. Let the task sit there for a further 120 seconds from when that task ran
        1. Confirm that the same forum task ran again at some point in that 120 seconds
      5. When the script ends, immediately re-run it
        1. Confirm that the forum task runs once per minute
      Show
      In a terminal window, run cron with no timeout just to clear any old tasks: php admin/cli/cron.php -k=0 In the first run the cron runner with no args to get a cron runner with a three-minute sleep 60; php admin/cli/cron.php Let it run Confirm that you can find the mod_forum\task\cron_task scheduled task Let the task sit there for a further 120 seconds from when that task ran Confirm that the same forum task ran again at some point in that 120 seconds When the script ends, immediately re-run it Confirm that the forum task runs once per minute

      Discovered whilst testing another issue:

      If I kick off a cron runner using the keepalive setting, it will run tasks and then poll for more.

      It is correctly picking up adhoc tasks, but it is missing new scheduled tasks.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Ferran Recio Ferran Recio
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 49 minutes
                2h 49m

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