Reloading never finishes in certain circumstances (logging a lot of data to terminal) #1891
Unanswered
ekeric13
asked this question in
Potential Issue
Replies: 1 comment 2 replies
-
a minimal reproductible example would help, from the description you make I fail at seeing where it could hang |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a bug in my code and my http server is logging my body to my terminal output. This endpoint contains form data so it is logging MBs worth of binary data.
But this problem is compounded by the fact that is that after i hit this endpoint, when I save any changes in the file, the server never finishes reloading. It will just hang for 5+ minutes before I give up waiting and manually kill the docker container and then rebuild it.
This is essentially the uvicorn setup I am using:
https://github.com/starlite-api/starlite-pg-redis-docker/blob/main/app/main.py#L67-L74
It seems underneath the hood uvicron uses this lib:
https://github.com/samuelcolvin/watchfiles
Please let me know if you think I need to make an issue in there.
Does the file reloading take into account the data written to one's terminal buffer?? I am really confused why I only see this behavior after testing out this one endpoint. I hit other endpoints and then I save the same exact file and it reloads just fine.
edit: Confirmed when I fixed the issue of logging to stdout the very large body the reloading worked again.
Beta Was this translation helpful? Give feedback.
All reactions