diff --git a/app/main/lib/presto.py b/app/main/lib/presto.py index e72fc763..e3ab50c1 100644 --- a/app/main/lib/presto.py +++ b/app/main/lib/presto.py @@ -55,6 +55,7 @@ def blocked_response(message, model_type): _, value = response return json.loads(value) else: - app.logger.error(f"Timeout reached while waiting for key '{model_type}_{item_id}'") + + app.logger.error(f"Timeout reached while waiting for key for model '{model_type}'") # TODO: should this raise an exception? this probably indicates data is being lost return None diff --git a/production/bin/start.sh b/production/bin/start.sh index 5cd23037..8110ced4 100755 --- a/production/bin/start.sh +++ b/production/bin/start.sh @@ -66,4 +66,4 @@ set +o allexport python manage.py init python manage.py init_perl_functions python manage.py db upgrade -gunicorn --preload -w 8 --threads 4 -b 0.0.0.0:${ALEGRE_PORT} --access-logfile - --error-logfile - wsgi:app +gunicorn --preload -w 8 --threads 8 -b 0.0.0.0:${ALEGRE_PORT} --access-logfile - --error-logfile - wsgi:app