ZF-7823: Prioritize Messages
Description
I'm using Zend_Queue as an emailer through a cron job and would like to be able to set the priority of the message that are being received and sent to the queue. For my specific situation I would want to classify registration validation emails, auction outbid notifications etc as of higher importance then newsletter / comment notifications etc.
I'm sure priority messaging could be utilized in a number of other scenarios as well.
Cheers,
Jay
Comments
Posted by Justin Plock (jplock) on 2009-09-10T11:23:25.000+0000
The adapters don't support this natively. You'd be better off extending the Db class and modifying the table schema to include a priority column then adjusting the queries to pull back the higher priority messages first.
Posted by Jason Brumwell (baxter) on 2009-09-10T13:29:22.000+0000
That is what I'm currently doing, just wasn't sure if there was a way to add support for it. Not familiar with the other adapters.
Posted by Christophe Gesché (moosh) on 2010-01-03T13:24:11.000+0000
Priority and dependency are also both of my need on DB
I tell to work on it.