GitHub user dosubot[bot] added a comment to the discussion: Async Queries redis 
connection error

<!-- Answer -->
Your configOverrides are almost correct, but Superset 5.0+ now requires a new 
setting for async queries: you must define `GLOBAL_ASYNC_QUERIES_CACHE_BACKEND` 
in your `superset_config.py`. If this is missing, Superset falls back to 
defaults (localhost:6379), which causes the connection errors you're 
seeing—even if your environment variables and other configs are set properly. 
This is a recent change and isn't reflected in older docs or most support 
threads.

Add the following to your configOverrides, using your existing Redis variables:

```python
GLOBAL_ASYNC_QUERIES_CACHE_BACKEND = {
    'CACHE_TYPE': 'RedisCache',
    'CACHE_REDIS_HOST': REDIS_HOST,
    'CACHE_REDIS_PORT': REDIS_PORT,
    'CACHE_REDIS_DB': REDIS_DB,
    'CACHE_KEY_PREFIX': 'superset_async_',
}
```

This will ensure async queries use your intended Redis host and DB, and prevent 
fallback to localhost. After updating, redeploy all Superset pods (web, worker, 
etc.) so the new config is loaded everywhere. You can find more details in the 
[recent PR and code changes](https://github.com/apache/superset/pull/29912).

If you still see issues, double-check that the environment variables are 
present in all pods, and that the correct `superset_config.py` is being loaded. 
Also, check the logs for which Redis host is actually being used at runtime.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/a91b7079-c4c2-4e82-bb34-31b8b932a6f2?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/a91b7079-c4c2-4e82-bb34-31b8b932a6f2?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/a91b7079-c4c2-4e82-bb34-31b8b932a6f2?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/a91b7079-c4c2-4e82-bb34-31b8b932a6f2?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/a91b7079-c4c2-4e82-bb34-31b8b932a6f2?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/a91b7079-c4c2-4e82-bb34-31b8b932a6f2?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/a91b7079-c4c2-4e82-bb34-31b8b932a6f2?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34650)

GitHub link: 
https://github.com/apache/superset/discussions/34650#discussioncomment-14081049

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to