-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis client not found when created background tasks in Swagger #151
Comments
How did you run it? Using docker compose? |
Exactly, docker-compose. Did I miss anything? |
Having the exact same issue. |
I think the issue is that all the Redis connections and the pool are tied to the cache in setup.py, which means that anyone who isn't using the cache can't get to them. I came up with a temporary fix. It's not ideal, but it does the job. I moved everything, like the is_rate_limited function, into cache.py, and now it works just fine. |
Describe the bug or question
A clear and concise description of what the bug or question is.
To Reproduce
Please provide a self-contained, minimal, and reproducible example of your use case
Description
Redis client was recognised as none when I tried to create background tasks in Swagger and caught exception in
is_rate_limited
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: