Merge pull request #2797 from GSA/report_performance

change gunicorn timeout to 240 seconds
This commit is contained in:
Kenneth Kehl
2025-07-30 12:16:12 -07:00
committed by GitHub

View File

@@ -2,7 +2,8 @@ import multiprocessing
import os
import sys
import traceback
import logging
from app.utils import hilite
import gunicorn
# Let gunicorn figure out the right number of workers
@@ -11,6 +12,10 @@ import gunicorn
# so adjust it.
workers = multiprocessing.cpu_count()
worker_class = "gevent"
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"))
disable_redirect_access_to_syslog = True
gunicorn.SERVER_SOFTWARE = "None"