-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emails are being sent latest first and I need vice versa #86
Comments
An easy solution is to use order_by(priority) and set 0 to be the higher priority(now) and so on. |
An easy way to do this would be to change the I don't want to merge this into |
I don't want to patch the official release. this can be configure using a settings parameter while keeping the default behavior as it now which is by priority. |
I suppose we could take an optional POST_OFFICE = {
'SENDING_ORDER': ['-id', '-priority']
} Pull request welcome :) |
OK, this would be great, for my needs I would order by the created attribute to send emails with the FIFO order. I will add the pull request. |
pull request submitted. |
Fixed in #87 |
I'm using the default priority which is Medium and a cron job to pick the emails out
of the queue for sending but emails are being sent lastest first due to "order_by(-priority)"
How can I achieve my goal which is sending out the oldest email in queue first?
thanks for this wonderful library
The text was updated successfully, but these errors were encountered: