integrate with job queue

kyle_mathews - October 8, 2008 - 16:20
Project:Notifications
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

We're using notifications on our organic groups site. I've noticed that in groups with 100+ members, when a new node or comment is created the page refresh takes a long time. I'm assuming this is because Drupal is waiting for notification to finish sending emails to all the users.

I know OG integrates with job queue so these emails aren't sent until the next cron job. Has Notifications already been integrated with Job Queue? Or is there some other way of stopping emails from being sent until the next cron?

#1

Ryan Palmer - October 8, 2008 - 18:27

Job_queue module is very easy to integrate into any module. Should it be made a flat-out requirement or just optional? I could probably roll a quick patch if we knew either way.

#2

kyle_mathews - October 9, 2008 - 01:40

I'd say optional. How OG works (the non-notification powered email system) is if job_queue is installed, it'll use it. If job_queue is not installed, it just shoots out emails. It warns you that you should probably install job_queue but doesn't require it. You don't really need job_queue though until your groups start getting fairly large so for most small sites it's over-kill.

#3

Scott Reynolds - October 9, 2008 - 16:55
Status:active» fixed

Notifications already has its own queue and undoubtly will not be integrating with job queue.

Notifications can be setup to immediate send emails which is frowned upon. Its the immediate sending check box on admin/messaging/notifications and the description reads: "Do not queue notifications for immediate sending. This will produce more timely notifications for sites with a small number of users."

#4

kyle_mathews - October 10, 2008 - 00:45

Ah! That's the solution. I have now unchecked that box. Thanks Scott for the heads up.

#5

Anonymous (not verified) - October 24, 2008 - 00:55
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.