sendgrid / sendgrid-ruby

The Official Twilio SendGrid Led, Community Driven Ruby API Library
https://sendgrid.com
MIT License
620 stars 324 forks source link

Priority of sent emails #471

Closed Timo-Wolf closed 2 years ago

Timo-Wolf commented 2 years ago

Issue Summary

I am using sidekiq to queue emails to be sent. I have set the queue to 1 concurrences so that it is forced to work on each job one by one. However one in six times the emails are received in the wrong order. For example: I have email A and email B, in the code I am queueing email A first and then email B. The queue is processing the jobs in the correct order (i have checked this) but the emails (sometimes not always) received are in the wrong order, email B and then email A. Is there a way to set prioritization with sendgrid for emails? I have looked through the sendgrid-ruby but couldn't find anything that will help.

Steps to Reproduce

  1. Send two emails one after another
  2. Check received emails order

Technical details:

eshanholtz commented 2 years ago

Hi @Timo-Wolf,

No there is no way to set email prioritization/queueing through the API or the helper libraries. For further help with this issue, I recommend reaching out to support.