Allow throttling of mails to prevent cron timeout

chamb1 - October 1, 2007 - 19:14
Project:Notify
Version:HEAD
Component:Miscellaneous
Category:feature request
Priority:critical
Assigned:Unassigned
Status:active
Description

I have the notify module set up to send out email notifications of new content once a day at 7 PM. The first day it worked fine. The next two days it sent out multiple messages to each subscribed user until I disabled the module. I tried changing my cron interval to 30 minutes thinking that jobs were overlapping, but that did not fix it. Anyone else having this problem?

#1

Benjamin Melançon - October 8, 2007 - 12:35
Status:active» duplicate

See Multiple notifications sent.

#2

RobertNelsonVance - November 15, 2008 - 05:26

@chamb1 - I have experienced the exact same issue. See below.

@Benjamin - That issue (http://drupal.org/node/111762), while being similar, does not appear to be the same as this one as it is related to cron starting a second time before it's finished running the first time. I don't have that issue because it only takes a few seconds for my cron to complete.

Here's what I noticed:

I had previously been running the following flawlessly:

  • Drupal 5.10 (screenshot)
  • Notify 5.x-1.x-dev (2007-Dec-16) (screenshot)
  • Notify configured to send mail once per day
  • Cron configured to run every hour

Then I upgraded to the following:

  • Drupal 5.12 (screenshot)
  • Notify 5.x-1.1 (2007-Jul-15) (screenshot)
  • Notify configured to send mail once per day
  • Cron runs every hour

The first 24hrs it ran fine and sent out the emails to all four hundred some user accounts as you would expect.

Today it sent out six identical emails throughout the day before I turned it off.

Obviously whatever is causing this is not good.

AttachmentSize
1226426664216.png 22.24 KB
1226426724837.png 10.01 KB
21226426664216.png 25.57 KB
21226426724837.png 10.17 KB

#3

RobertNelsonVance - November 19, 2008 - 06:34

Anyone have any further insight about this issue?

#4

Benjamin Melançon - November 20, 2008 - 11:56
Status:duplicate» active

(If I'm wrong about it being the same issue as 111762, should mark this active.)

#5

jwatte - January 28, 2009 - 19:01

I got this in spades. I think the problem may be related to cron job or php job runtimes being limited by certain application hosting providers, and the "commit" of users being notified doesn't happen until all users have been notified.

#6

derieppe - April 1, 2009 - 10:07

+1
Got same probleme with version 5-13.
Cron go on timeout after 3 minutes and Notify do not commit users witch have been notified => so they are notify at next cron job...

#7

matt2000 - April 1, 2009 - 21:12
Title:Notify sends multiple copies out.» Allow throttling of mails to prevent cron timeout
Version:5.x-1.1» HEAD
Category:bug report» feature request

This probably won't be fixed in D5 without a patch from the community.

A roadmap has been established for merging with Notifications module or fixing this issue independently, if need be.

Details are on Notify by views project page.

 
 

Drupal is a registered trademark of Dries Buytaert.