Skip to content

Commit

Permalink
release version 0.10.2; cache servers (localstack#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
whummer authored Aug 13, 2019
1 parent 05f4b58 commit 3f9862b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ localstack web

## Change Log

* v0.10.2: Fix logging issue with async Lambdas; fix kinesis records processing; add basic support for `Ref` in CloudFormation; fix ddb streams uuid generation; upgrade travis CI setup; fix DynamoDB error messages; cache server processes
* v0.10.0: Lazy loading of libraries; fix handling of regions; add API multiserver; improve CPU profiling; fix ES xpack installation; add basic EventBridge support; refactor Lambda API and executor; add MessageAttributes on SNS payloads; tagging for SNS; ability to customize docker command
* v0.9.6: Add API Gateway SQS proxy; fix command to push Docker image; fix Docker bridge IP configuration; fix SSL issue in dashboard infra; updates to README
* v0.9.5: Reduce Docker image size by squashing; fix response body for presigned URL S3 PUT requests; fix CreateDate returned by IAM; fix account IDs for CF and SNS; fix topic checks for SMS using SNS; improve documentation around `@LocalstackDockerProperties`; add basic EC2 support; upgrade to ElasticSearch 6.7; set Last-Modified header in S3; preserve logic with uppercase event keys in Java; add support for nodejs 10.x Lambdas
Expand Down
2 changes: 1 addition & 1 deletion localstack/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import localstack_client.config

# LocalStack version
VERSION = '0.10.1.2'
VERSION = '0.10.2'

# default AWS region
if 'DEFAULT_REGION' not in os.environ:
Expand Down
2 changes: 1 addition & 1 deletion localstack/services/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def start_infra(asynchronous=False, apis=None):
thread = thread or t1

time.sleep(sleep_time)
# check that all infra components are up and running
# ensure that all infra components are up and running
check_infra(apis=apis)
# restore persisted data
restore_persisted_data(apis=apis)
Expand Down
9 changes: 8 additions & 1 deletion localstack/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
# arrays for temporary files and resources
TMP_FILES = []
TMP_THREADS = []
TMP_PROCESSES = []

# cache clean variables
CACHE_CLEAN_TIMEOUT = 60 * 5
Expand Down Expand Up @@ -640,8 +641,14 @@ def cleanup(files=True, env=ENV_DEV, quiet=True):
def cleanup_threads_and_processes(quiet=True):
for t in TMP_THREADS:
t.stop(quiet=quiet)
# clear list
for p in TMP_PROCESSES:
try:
p.terminate()
except Exception as e:
print(e)
# clear lists
clear_list(TMP_THREADS)
clear_list(TMP_PROCESSES)


def clear_list(l):
Expand Down
2 changes: 1 addition & 1 deletion localstack/utils/server/multiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def start_api_server(api, port, server_port=None):

def start_server_process(port):
if '__server__' in API_SERVERS:
return
return API_SERVERS['__server__']['thread']
port = port or MULTI_SERVER_PORT
API_SERVERS['__server__'] = config = {'port': port}
LOG.info('Starting multi API server process on port %s' % port)
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ flask-cors==3.0.3
flask_swagger==0.2.12
forbiddenfruit==0.1.3
jsonpath-rw==1.4.0
localstack-ext>=0.10.1.10
localstack-ext[full]>=0.10.2
localstack-ext>=0.10.2 #basic-lib
localstack-client==0.9 #basic-lib
moto-ext==1.3.14.dev0
nose>=1.3.7
Expand Down

0 comments on commit 3f9862b

Please sign in to comment.