提交 3cb0fbbb 编写于 作者: W wenkai

fix detail_cache.has_content works not properly (always return the wrong value false)

上级 f3b621a9
...@@ -369,6 +369,10 @@ class _DetailCacheManager(_BaseCacheManager): ...@@ -369,6 +369,10 @@ class _DetailCacheManager(_BaseCacheManager):
self._max_threads_count = 30 self._max_threads_count = 30
self._loader_generators = loader_generators self._loader_generators = loader_generators
def has_content(self):
"""Whether this cache manager has train jobs."""
return bool(self._loader_pool)
def size(self): def size(self):
""" """
Get the number of items in this cache manager. Get the number of items in this cache manager.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册