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 17, 2018
1 parent bec183c commit f9bd3ec
Show file tree
Hide file tree
Showing 31 changed files with 871 additions and 699 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 f9bd3ec

Please sign in to comment.