fmab777 commited on
Commit
08e0d82
·
verified ·
1 Parent(s): 0d6c1ce

Update gunicorn.conf.py

Browse files
Files changed (1) hide show
  1. gunicorn.conf.py +3 -5
gunicorn.conf.py CHANGED
@@ -5,9 +5,7 @@ worker_class = 'uvicorn.workers.UvicornWorker'
5
  workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
6
  bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
7
 
8
- # *** FIX: Add explicit timeout longer than API timeouts ***
9
- # Set to slightly longer than the longest expected API call (e.g., OpenRouter's 180s)
10
- # Use 200 seconds here. Adjust if needed.
11
- timeout = 200
12
 
13
- # loglevel = 'info' # Optional log level override
 
5
  workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
6
  bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
7
 
8
+ # Timeout should be longer than the longest expected API call (e.g., OpenRouter 180s)
9
+ timeout = 200 # 200 seconds
 
 
10
 
11
+ # loglevel = 'info'