gunicorn app:server --workers 4 --threads 1 --timeout 120
For CPU-heavy or Pandas/NumPy tasks, threads don’t help because of the Python GIL. Increasing worker and reducing threads improves responsiveness: