diff --git a/gunicorn.conf.py b/gunicorn.conf.py index a3751bfd5..ab83c145e 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -13,7 +13,7 @@ logger_class = "safe_transaction_service.utils.loggers.CustomGunicornLogger" preload_app = False # Load application code before the worker processes are forked (problems with gevent patching) # For timeout to work with gevent, a custom GeventWorker needs to be used -timeout = os.environ("WEB_WORKER_TIMEOUT", 60) +timeout = os.environ.get("WEB_WORKER_TIMEOUT", 60) worker_class = "gunicorn_custom_workers.MyGeventWorker" # "gevent" worker_connections = os.environ.get("WEB_WORKER_CONNECTIONS", 1000)