diff --git a/hooks/publisher.py b/hooks/publisher.py index 337b691..17b4271 100644 --- a/hooks/publisher.py +++ b/hooks/publisher.py @@ -19,7 +19,7 @@ def __enter__(self): params = pika.ConnectionParameters(host=self._host, port=self._port, virtual_host=self._virtual_host, credentials=credentials) self._connection = pika.BlockingConnection(params) self._channel = self._connection.channel() - self._channel.exchange_declare(exchange=self._exchange_name, type="topic", durable=True) + self._channel.exchange_declare(exchange=self._exchange_name, exchange_type="topic", durable=True) return self def __exit__(self, exc_type, exc_val, exc_tb): diff --git a/hooks/settings/settings_gunicorn.py b/hooks/settings/settings_gunicorn.py index 750c6d5..1aee60a 100644 --- a/hooks/settings/settings_gunicorn.py +++ b/hooks/settings/settings_gunicorn.py @@ -11,6 +11,8 @@ workers = 4 bind = "0.0.0.0:8005" +worker_class = "eventlet" +worker_connections = 10 # Overwrite some Gunicorns params by ENV variables for k, v in os.environ.items(): diff --git a/requirements.txt b/requirements.txt index f1d8d46..f67a56d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -falcon==1.1.0 +falcon==1.4.1 graypy==0.2.14 -gunicorn==19.6.0 -pika==0.10.0 +gunicorn[eventlet]==19.9.0 +pika==0.12.0 python-mimeparse==1.6.0 -requests==2.12.4 +requests==2.19.1 six==1.10.0