mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-08 03:38:26 -04:00
change gunicorn timeout to 240 seconds
This commit is contained in:
@@ -2,13 +2,19 @@ import os # noqa
|
|||||||
import socket # noqa
|
import socket # noqa
|
||||||
import sys # noqa
|
import sys # noqa
|
||||||
import traceback # noqa
|
import traceback # noqa
|
||||||
|
import logging
|
||||||
|
|
||||||
import gunicorn # noqa
|
import gunicorn
|
||||||
|
|
||||||
|
from app.utils import hilite # noqa
|
||||||
|
|
||||||
# This will give us a better stack trace if
|
# This will give us a better stack trace if
|
||||||
workers = 4
|
workers = 4
|
||||||
worker_class = "gevent"
|
worker_class = "gevent"
|
||||||
worker_connections = 256
|
worker_connections = 256
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
logging.info(hilite("Gunicorn timeout set to 240 seconds"))
|
||||||
|
timeout = 240
|
||||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||||
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
||||||
gunicorn.SERVER_SOFTWARE = "None"
|
gunicorn.SERVER_SOFTWARE = "None"
|
||||||
|
|||||||
Reference in New Issue
Block a user