You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "zephyring (via GitHub)" <gi...@apache.org> on 2024/01/03 21:16:38 UTC
Re: [PR] feat(embedded+async queries): support async queries to work with embedded guest user [superset]
zephyring commented on code in PR #26332:
URL: https://github.com/apache/superset/pull/26332#discussion_r1440961003
##########
superset/tasks/async_queries.py:
##########
@@ -140,7 +152,13 @@ def load_explore_json_into_cache( # pylint: disable=too-many-locals
"response_type": response_type,
}
cache_key = generate_cache_key(cache_value, cache_key_prefix)
- set_and_log_cache(cache_manager.cache, cache_key, cache_value)
+ cache_instance = cache_manager.cache
+ cache_timeout = (
+ cache_instance.cache.default_timeout if cache_instance.cache else None
Review Comment:
using cache_instance default_timeout if found. Otherwise it will fallback to config["CACHE_DEFAULT_TIMEOUT"]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org