Closed jthart-freeday closed 5 months ago
You can create your own Threadpool with smaller limit of process and pass it to Limiter like this https://github.com/vutran1710/PyrateLimiter/blob/master/pyrate_limiter/limiter.py#L71
The latest version (3,4.1) has this fixed! Please upgrade!
We use PyrateLimiter with a Redis bucket in our Django application, which runs on Google Cloud Run. When a process waits too long, our Cloud Run instance will terminate due to a timeout. When this happens, we get the below error.
It looks like a task is waiting for its turn to execute, but the Cloud Run instance terminates while it's waiting. Somehow it seems like the clean-up of the processes fails in this scenario.
Do you have any idea what could cause this?