Scheduled tasks - Forum mailings not sending emails but assignment notification emails are sent

Scheduled tasks - Forum mailings not sending emails but assignment notification emails are sent

by Huw Smith -
Number of replies: 5

Recently upgraded to Moodle 3.7.1+ (Build: 20190830) from 3.5 and no longer get email notifications from forums.

When a forum post is created no emails are being sent but if a student uploads an assignment an email notification is sent.

The assignment module doesn't appear to be listed in the scheduled tasks but the forum mailings does. So think the problem is with the scheduled tasks.
Have tried disabling the scheduled task and running the cron manually but forum emails still not sent.

Any suggestions what the problem could be?

 

Looking in the task logs for Forum mailings and maintenance jobs the result says success, a copy of a log below

Execute scheduled task: Forum mailings and maintenance jobs (mod_forum\task\cron_task)
... started 17:01:05. Current memory use 37.2MB.
Removing old digest records from 7 days ago.
Removed all old digest records.
Fetching unmailed posts.
Done
Processing post information
Processed 2 posts
Filling caches
Filling course cache
Done
Filling forum cache
Done
Filling discussion cache
Done
Filling user subscription cache
Done
Filling digest cache
Done
All caches filled
Queueing user tasks.
Processing 4 users
Queued 0 digests and 1 messages for 9758
Queued 0 digests and 2 messages for 3
Queued 0 digests and 1 messages for 4
Queued 0 digests and 1 messages for 2
Queued 0 digests, and 4 individual tasks for 5 post mails. Unique users: 4 (0 ignored)
All tasks queued.
... used 83 dbqueries
... used 0.1753671169281 seconds
Scheduled task complete: Forum mailings and maintenance jobs (mod_forum\task\cron_task)

Average of ratings: -
In reply to Huw Smith

Re: Scheduled tasks - Forum mailings not sending emails but assignment notification emails are sent

by Huw Smith -
Have seen that there is a scheduled task for assignments, Background processing for assignment module so assume the email notifications are sent from there.
In reply to Huw Smith

Re: Scheduled tasks - Forum mailings not sending emails but assignment notification emails are sent

by Huw Smith -
I have changed the settings for the Forum mailings scheduled task to run every 2 minutes instead of ASAP but the next run is still showing ASAP and the minute is showing as */2
and when refreshing the scheduled task page the next run does change to show the time but on refresh again changes back to ASAP.

Any suggestions?
 
In reply to Huw Smith

Ri: Re: Scheduled tasks - Forum mailings not sending emails but assignment notification emails are sent

by Daniele Rostellato -

Hello! 

I am experiencing the same issue... did you find any solutions?

Thanks in advance!



In reply to Daniele Rostellato

Re: Ri: Re: Scheduled tasks - Forum mailings not sending emails but assignment notification emails are sent

by Uwe Klemm -
Same problem here - any solution yet?
Uwe
In reply to Huw Smith

Re: Scheduled tasks - Forum mailings not sending emails but assignment notification emails are sent

by Susana L. -
Take a look: https://moodle.org/mod/forum/discuss.php?d=388490

It seems that it means the messages are not being really sent... they are getting queued... (???)

This is the log of a sent message:

Adhoc task complete: mod_forum\task\send_user_notifications
Execute adhoc task: mod_forum\task\send_user_notifications
... started 15:39:05. Current memory use 47.4MB.
Sending messages to xxxxxx (XX_ID_XX)
Post 14066 sent
Sent 1 messages with 0 failures