Is there a limit to how many emails will be sent out in a given amount of time, for instance an hour? I've setup Subscriptions module with Scheduler and I'm testing by scheduling a node to be published about every 5 mins, but email is being sent sporadically; there doesn't appear to be a rhyme or reason. Cron is working and there is plenty of time left during each cron run. (I found the test function to update Watchdog with how many seconds are available for Subscriptions) The nodes are getting published by Scheduler, but Subscriptions ignores the newly published nodes most of the time.

I'm digging through the code but so far I've been unable to find a reason for why this is happening. Any ideas?

Comments

salvis’s picture

No, there's no such limit. You could limit the number per cron job, but by default the limit is time-based, and apparently you've found the Display summary watchdog entries per cron job setting.

most of the time.

... but not all of the time? Hmm, that's a tough one...

Scheduler would need to call hook_nodeapi('prepare') and then hook_nodeapi('update'). That's the only way for Subscriptions to recognize the transition from unpublished to published (and to send out new notifications). If you subscribe to update notifications, you should get them either way.

kecinzer’s picture

It is possible to sending notification instantly with creating new content? Not by cron runs.
I think, that 5xx version can do that, but in 6xx version only on cron.

salvis’s picture

No. Trying to do that was one of the reasons for the awful bugs in 5.x-1.x, especially with node access. 5.x-2.x+ runs only on cron.

cozzi’s picture

Salvis,

In #1 above, you said: "You could limit the number per cron job," Could you explain how I could do that?

My goal is to limit the total number of emails sent to 300/hour, even if that number does not clear the queue, because my HOST has a limit of 300 hours after which the emails are dropped.

thank you in advance.
Cozzi

Disregard, While closing all the windows I had open I noticed anther thread that pointed me to it: admin/settings/subscriptions

FYI: This is one amazingly powerful and well thought out module - now can you make it poke me in the eye when I can't find something? :-)

salvis’s picture

Status: Active » Fixed

Thank you, cozzi.

The OP never came back — let's mark this fixed. Feel free to reopen if this needs to be pursued any further...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.