my app was running great but then I changed some things and now it can sometimes 'think' for more then 30 seconds before getting back to me. The problem is that Gunicorn times-out after 30 seconds:
[2016-03-28 18:25:52 +0000] [3] [CRITICAL] WORKER TIMEOUT (pid:8)
2016-03-28T18:25:52.625220+00:00 app[web.1]:
[2016-03-28 18:25:52 +0000] [8] [INFO] Worker exiting (pid: 8)
Now, I did some research and I know that I need to create a config file for Gunicorn and put a command to override Gunicorn's timeout default, like this:
TIMEOUT=120
But how do I do that? I mean, how do I tell Gunicorn to look in, for example, gunicorn_config.txt and respect the laws I create for it there?