We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949e4de commit 1db8577Copy full SHA for 1db8577
apps/common/config/embedding_config.py
@@ -25,16 +25,14 @@ def get_model(_id, get_model):
25
with _lock:
26
model_instance = get_model(_id)
27
ModelManage.cache.set(_id, model_instance, timeout=60 * 60 * 8)
28
- ModelManage.clear_timeout_cache()
29
- return model_instance
30
else:
31
if model_instance.is_cache_model():
32
ModelManage.cache.touch(_id, timeout=60 * 60 * 8)
33
34
35
36
37
+ ModelManage.clear_timeout_cache()
+ return model_instance
38
39
@staticmethod
40
def clear_timeout_cache():
0 commit comments