Spaces:
Runtime error
Runtime error
File size: 369 Bytes
66fc484 |
1 2 3 4 5 6 7 8 |
# gunicorn_conf.py
workers = 2 # adjust based on CPU cores; 1-4 typical for Spaces
threads = 4 # use threads to avoid blocking other requests
worker_class = "gthread" # threaded worker is more tolerant of blocking ops
timeout = 120 # worker timeout in seconds (increase from default 30)
graceful_timeout = 120
keepalive = 5
|