Forum posts not sending email notifications in 2.7.2, message notifications work

Forum posts not sending email notifications in 2.7.2, message notifications work

by Eric Messick -
Number of replies: 1

Was working OK before I upgraded to 2.7.2. When "Legacy cron processing for plugins" in Scheduled Tasks  is enabled (as it is by default), notifications for forum posts never get sent but notifications for messages do. It also prevented maybe 5 other tasks from running (I haven't looked at those).

When I disable "Legacy cron..." I get email notifications and the other tasks run.  I'm guessing that  something is going wrong with whatever legacy_plugin_cron_task.php is doing in /moodle/lib/classes/task/.  Replicated problem by re-enabling. 

When enabled, the "next run" column in Scheduled tasks says "ASAP" for "Legacy cron processing for plugins" and for "Forum mailings and maintenance jobs" and never runs.  Also, the fail delay stays at 0. 

My cron runs every minute, "Legacy cron processing for plugins" was at its default 1 min, other tasks are at their defaults. 

Might be related to MDL-47331 Schedule task lock is not released for legacy_plugin_cron_task? I am using essential theme and local_staticpages, repository_poodll, and filter_poodll plugins. 

How can I tell what plugin cron tasks are being run by the "Legacy cron processing for plugins" task? Anything else I might check?  Thanks.

Eric


Average of ratings: -
In reply to Eric Messick

Re: Forum posts not sending email notifications in 2.7.2, message notifications work

by Eric Messick -

Figured out how to execute scheduled tasks through CLI:

https://tracker.moodle.org/browse/MDL-44732?jql=text%20~%20%22scheduled%20tasks%22

Confirmed this works with a few tasks.  Tried it for legacy_plugin_cron_task a few times and it runs, but takes between 5 and 40 sec, output pasted here for a long running one.

root@serv1:~# php /var/www/moodle/admin/tool/task/cli/schedule_task.php --execute=\\core\\task\\legacy_plugin_cron_task

Scheduled task: Legacy cron processing for plugins

Running auth crons if required...

Running enrol crons if required...

Starting activity modules

Processing module function assign_cron ...

... used 4 dbqueries

... used 32.911223888397 seconds

done.

Processing module function chat_cron ...

... used 5 dbqueries

... used 4.1710538864136 seconds

done.

Processing module function quiz_cron ...


  Looking for quiz overdue quiz attempts...

  Considered 0 attempts in 0 quizzes.

Starting quiz reports

Finished quiz reports

... used 2 dbqueries

... used 0.073593854904175 seconds

done.

Processing module function scorm_cron ...

... used 3 dbqueries

... used 0.026502847671509 seconds

done.

Processing module function workshop_cron ...

 processing workshop subplugins ...

Starting workshop allocation methods

Processing cron function for workshopallocation_scheduled...

... started 01:29:09. Current memory use 30.6MB.

... no workshops awaiting scheduled allocation. done. (1 dbqueries, 0 seconds)

Finished workshop allocation methods

... used 6 dbqueries

... used 0.087047100067139 seconds

done.

Finished activity modules

Starting blocks

Processing cron function for recent_activity....done.

Processing cron function for rss_client....

0 feeds refreshed (took 0.00018399999999996 seconds)

done.

Finished blocks

Starting admin reports

Finished admin reports

Starting course reports

Finished course reports

Starting gradebook plugins

Finished gradebook plugins

root@serv1:~#