Access logger writing to closed file #2132
Unanswered
Jolloniego
asked this question in
Potential Issue
Replies: 1 comment
-
I have been running into the same error with Uvicorn in Python.3.8_3.8.2800.0_x64. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello and thanks in advance for any help with this 🙏
We have been running into the following issue in our production deployment (fastapi on GCP Cloud Run running uvicorn with default config from docker - 1vCPU 4GB RAM).
We have long running task of approx 10 sec (think of
time.sleep
instead ofasyncio.sleep
) that we run using as suggested here:This is working fine and scaling to meet our demands, the problem is that we are running into thousands of the following error every day and we don't know how to address it:
We run a monitoring
/healthcheck
endpoint every minute to count the number of active tasks, threads and FileDescriptors, something like:And we dont see the number of tasks go above 10, the number of threads over 20 or the FDs over 50.
Has anyone here seen an issue like this before? What are we missing?
Beta Was this translation helpful? Give feedback.
All reactions