I'd like to deploy this module on Drupal.org. It'd be great to use a mail_queue on d.o instead of triggering the sending of notification emails directly in the page load when you post a new issue or comment. See #1618240: Consider deploying queue_mail for issue notification emails for more.

However, we're going to want to very frequently be draining this queue so that the latency of issue notification emails doesn't suffer too badly. At least 1/minute, maybe every 5-15 seconds or something. It'd be really great if this module provided a drush command that you could run that triggered draining the mail_queue. Seems like it should be quite easy.

Please let me know if the maintainers here would be open to providing/supporting such functionality. If necessary, I could possibly get someone from the d.o D7 porting team to provide the command (although if y'all wanted to help the d.o D7 port by doing it yourself, all the better). Also, tagging for the D7 port, although this definitely is not a blocker...

Thanks!
-Derek

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven Jones’s picture

As this module just uses standard the Drupal 7 queue then you have a more general problem, and so I don't think you particularly need a solution specific to this module.

I would investigate a module such as: Waiting queue that can dispatch as soon as items become available in the queue. This is already deployed on d.o I believe.

I can see the value of a specific drush command for just this module however, for people that don't want to install another module etc.

Steven Jones’s picture

Status: Active » Needs review
FileSize
2.68 KB

Here's a first, untested, rough cut.

Steven Jones’s picture

Status: Needs review » Fixed

Tested and pushed in 7.x-1.x.

dww’s picture

Wow, thanks!

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