[CRITICAL] WORKER TIMEOUT (pid:155)
I'm running a python flask app on Railway. My app uses python's langchain library to interact with the openai api. Requests are long, and I get the following error consistently: [CRITICAL] WORKER TIMEOUT (pid:155)
is there anyway to extend the timeout period?
19 Replies
Project ID:
N/A
N/A
default timeout is 30s do your requests take longer than that?
Yes, OpenAI is slow when handling bigger requests
okay what is your start command?
i have none
(new to railway - that's my first project)
Procfile?
looking into it. The documentation isn't very extensive on the topic though
the procfile would be in your project
as a file
oh ok
send it please
yep got it. it's got this: web: gunicorn main:app
change the file contents to
web: gunicorn --timeout 300 main:app
oh nice
I'll do this now and let you know
so far seems very stable! 🙂
If ever sthg changes I will let you know but thanks a lot !
no problem!
Worked for me too. Thanks Brody
thanks, it worked for me