Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
bug: make boto3 calls thread safe
Browse files Browse the repository at this point in the history
Closes #1081
  • Loading branch information
jrconlin committed Jan 18, 2018
1 parent bec183c commit 299bebf
Show file tree
Hide file tree
Showing 31 changed files with 858 additions and 701 deletions.
3 changes: 3 additions & 0 deletions autopush/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ class AutopushConfig(object):
# Don't cache ssl.wrap_socket's SSLContexts
no_sslcontext_cache = attrib(default=False) # type: bool

# DynamoDB endpoint override
aws_ddb_endpoint = attrib(default=None) # type: str

def __attrs_post_init__(self):
"""Initialize the Settings object"""
# Setup hosts/ports/urls
Expand Down
4 changes: 4 additions & 0 deletions autopush/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""Shared constants which might produce circular includes"""

# Number of concurrent threads / AWS Session resources
THREAD_POOL_SIZE = 50
Loading

0 comments on commit 299bebf

Please sign in to comment.