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

Question uses legacy cron

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.7
    • 3.7
    • Questions
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65050-master-fix
    • Hide
      New scheduled tasks tests
      1. Log in as admin.
      2. Go to Site administration > Server > Tasks > Scheduled tasks
      3. Search for question.
      4. Make sure two scheduled task for question are now available:
        • Background processing for cleaning up the old question previews
        • Background processing for cleaning up the old question statistics cache
      5. Make sure you are able to edit (Cog icon) and see the logs (That other sheet icon) on both tasks.
      6. Run php admin/tool/task/cli/schedule_task.php "--execute=\\core\\task
        question_preview_cleanup_task"
        • Make sure you don't see any errors.
      7. Run php admin/tool/task/cli/schedule_task.php "--execute=\\core\\task
        question_stats_cleanup_task"
        • Make sure you don't see any errors.
      Deprecation test
      1. Grep for question_preview_cron() and question_usage_statistics_cron() it should not return any occurrence.
      Show
      New scheduled tasks tests Log in as admin. Go to Site administration > Server > Tasks > Scheduled tasks Search for question . Make sure two scheduled task for question are now available: Background processing for cleaning up the old question previews Background processing for cleaning up the old question statistics cache Make sure you are able to edit (Cog icon) and see the logs (That other sheet icon) on both tasks. Run php admin/tool/task/cli/schedule_task.php "--execute=\\core\\task question_preview_cleanup_task" Make sure you don't see any errors. Run php admin/tool/task/cli/schedule_task.php "--execute=\\core\\task question_stats_cleanup_task" Make sure you don't see any errors. Deprecation test Grep for question_preview_cron() and question_usage_statistics_cron() it should not return any occurrence.

      Doing a quick search I found another legacy cron functions question_usage_statistics_cron() and question_preview_cron() on question. Those needs to be converted to scheduled task.

            lameze Simey Lameze
            lameze Simey Lameze
            Tim Hunt Tim Hunt
            Adrian Greeve Adrian Greeve
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 55 minutes
                3h 55m

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