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

Gradebook uses legacy cron

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.7
    • 3.7
    • Gradebook
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65044-master
    • Hide
      1. Run

        php admin/tool/task/cli/schedule_task.php --execute=\\core\\task\\grade_cron_task

        • It should work as before.
      2. Grep for grade_cron() it should not find any occurrence. 
      Test new grade history clean up task
      1. Log in as admin.
      2. Go to Site administration > Server > Tasks > Scheduled tasks
      3. Make sure a new scheduled task for grade is now available:
        Background processing for grade history cleanup has been created
      4. Make sure you are able to edit (Cog icon) and see the logs (That other sheet icon).
      5. Run

        php admin/tool/task/cli/schedule_task.php --execute=\\core\\task\\grade_history_cleanup_task

      Show
      Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task\\grade_cron_task It should work as before. Grep for grade_cron() it should not find any occurrence.  Test new grade history clean up task Log in as admin. Go to Site administration > Server > Tasks > Scheduled tasks Make sure a new scheduled task for grade is now available: Background processing for grade history cleanup has been created Make sure you are able to edit (Cog icon) and see the logs (That other sheet icon). Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task\\grade_history_cleanup_task

      Looking gradelib.php I found another legacy cron function grade_cron(). That needs to be converted to scheduled task.

            lameze Simey Lameze
            lameze Simey Lameze
            Shamim Rezaie Shamim Rezaie
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            3 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, 25 minutes
                1h 25m

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