Open scottyeung opened 2 months ago
How did you run it? Using docker compose?
How did you run it? Using docker compose?
Exactly, docker-compose. Did I miss anything?
Having the exact same issue. Redis name in .env = redis , App started by docker compose up -d When trying to post a new task , getting raise Exception("Redis client is not initialized.")=
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.