FastAPI worker timing out #10620
Unanswered
ArijitSinghEDA
asked this question in
Questions
Replies: 1 comment 3 replies
-
Maybe you dont have enough memory? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I am running the code using gunicorn inside my virtual environment with the command
python -m gunicorn main:app --bind 127.0.0.1:8888 --workers 4 --worker-class uvicorn.workers.UvicornWorker --timeout 86400 --graceful-timeout 86400
Inside my
main
function, I am reading an sql query and converting it into a pandas dataframe. When the query has 5M rows, there's no issue, but when the number of rows increase to 10M, the workers are sent aSIGKILL
signal, even after setting bothtimeout
andgraceful-timeout
. Is there any internal timeout set byfastAPI
? I searched all over the internet but couldn't find anything suggesting that fastAPI can behave like this.Operating System
Linux
Operating System Details
I am using
wsl
on my Windows system.FastAPI Version
0.104.1
Pydantic Version
2.4.2
Python Version
3.10.12
Additional Context
I am running this from inside a virtual environment.
Beta Was this translation helpful? Give feedback.
All reactions