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 31, 2018
1 parent 51029f6 commit 2d08ff5
Show file tree
Hide file tree
Showing 33 changed files with 872 additions and 696 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 2d08ff5

Please sign in to comment.