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

Question uses legacy cron

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7
    • Fix Version/s: 3.7
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-65050-master-fix

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

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