Commit 089a0022 authored by tangjicheng's avatar tangjicheng
Browse files

add queue lock for refresh-checkpoints

parent 394ffa7b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -593,6 +593,7 @@ class Api:
        }

    def refresh_checkpoints(self):
        with self.queue_lock:
            shared.refresh_checkpoints()

    def create_embedding(self, args: dict):