Commit 089a0022 authored by tangjicheng's avatar tangjicheng

add queue lock for refresh-checkpoints

parent 394ffa7b
......@@ -593,7 +593,8 @@ class Api:
}
def refresh_checkpoints(self):
shared.refresh_checkpoints()
with self.queue_lock:
shared.refresh_checkpoints()
def create_embedding(self, args: dict):
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment