Open gabbie-newell opened 5 years ago
@gabbie-newell This is the feature I always wanted in the package but not sure how to implement this. We need some kind of storage to prevent sending of emails like Redis or something. But not sure if this is the right approach.
Suggestions are most welcome.
I offer my solution for avoid duplicated exceptions https://github.com/squareboat/sneaker/pull/46
My e-mail provider (MailGun) always bans me because Sneaker sends too many e-mails per minute. Is it possible to limit number of Sneaker messages per minute? Or prevent duplication of messages? For example when some queue-worker meets an error, Sneaker sends many messages each second. I changed all queued jobs and listeners to retryAfter parameter for around 30-60 seconds. But I will be very thankful if Sneaker could be able to limit number of messages per minute or could prevent duplication. PS. I like Sneaker, because it's very simple to install and most functional :) Hope for your help! Thanks in advance.