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

Generate Sendgrid API key during Azure setup #1311

Merged
merged 4 commits into from
Jul 10, 2018
Merged

Generate Sendgrid API key during Azure setup #1311

merged 4 commits into from
Jul 10, 2018

Conversation

c-w
Copy link
Contributor

@c-w c-w commented Jul 10, 2018

We've been seeing some instability in production with the runtime creation of API keys approach. This is because of race conditions where one thread creates an API key and then at a later time another thread needs to re-create the key (e.g. due to the worker or pod crashing and being restarted) thus invalidating the first one.

Also:

  • Increase minimum number of pods in Azure deployment to increase availability.
  • Fix formatting in the server/utils.py file.

c-w added 3 commits July 10, 2018 08:23
This increases availability of the services.
We've been seeing some instability in production with the runtime
creation of API keys approach. This is because of race conditions where
one thread creates an API key and then at a later time another thread
needs to re-create the key (e.g. due to the worker or pod crashing and
being restarted) thus invalidating the first one.
@c-w c-w requested a review from colinschoen July 10, 2018 13:11
Copy link
Member

@colinschoen colinschoen left a comment

Choose a reason for hiding this comment

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

LGTM

@colinschoen colinschoen merged commit 8f888fe into okpy:master Jul 10, 2018
@c-w c-w deleted the bug/c-w/sendgrid-user-password-access branch July 10, 2018 16:41
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.

None yet

2 participants