You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug but a question. I have an async Flask application that runs through gunicorn, with 1 worker and 4 threads. In one of the endpoints, which am caching with the asyncache cached decorator, I am doing an async call to another service. Many times I get back an "event loop closed" error. Is this to be expected? A sample of my code is:
This is not a bug but a question. I have an async Flask application that runs through gunicorn, with 1 worker and 4 threads. In one of the endpoints, which am caching with the asyncache cached decorator, I am doing an async call to another service. Many times I get back an "event loop closed" error. Is this to be expected? A sample of my code is:
I have coded a thread-safe version of the TTLCache, like this
But this, sometimes, just returns an empty result, so... I am pretty lost, here...
The text was updated successfully, but these errors were encountered: