Skip to content
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

Handle e-mail failures in batch notifier #2177

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

daveFNbuck
Copy link
Contributor

Description

Ignore e-mail send failures, and ensure we still clean up as if the e-mails were send.

Motivation and Context

#1957, failed e-mail sends can stall the scheduler. As there's not much we can do about not sending e-mails, we just ignore the error. In order to prevent constant e-mail processing, we also clear all the e-mails from the queue and reset the time period for the next send.

Have you tested this? If so, how?

Unit tests, plus I've been using this in production for about 6 months.

As there's not much we can do about not sending e-mails, we just ignore
the error. In order to prevent constant e-mail processing, we also
clear all the e-mails from the queue and reset the time period for the
next send.
@daveFNbuck daveFNbuck force-pushed the handle_batch_exception branch from 3ee4b3e to 2b7a477 Compare July 10, 2017 23:44
Copy link
Contributor

@Tarrasch Tarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As there's not much we can do about not sending e-mails

I suppose an evolution would be to just send them later. But that can be added later by whoever needs it. :)

@dlstadther dlstadther merged commit c87e32b into spotify:master Jul 11, 2017
@daveFNbuck daveFNbuck deleted the handle_batch_exception branch July 11, 2017 16:28
This was referenced Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants