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 Dec 1, 2017
1 parent 5871294 commit c9e905a
Show file tree
Hide file tree
Showing 28 changed files with 918 additions and 657 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ matrix:
- python: 2.7
env: TOXENV=py27 DDB=true CODECOV=true
- python: pypy
env: TOXENV=pypy DDB=true CODECOV=true
env: TOXENV=pypy DDB=true CODECOV=true AWS_LOCAL_DYNAMODB=http://127.0.0.1:8000
- env: TOXENV=flake8 WITH_RUST=false
- python: 3.6
env: TOXENV=py36-mypy WITH_RUST=false
Expand Down
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 c9e905a

Please sign in to comment.