Skip to content

Commit 8d0078b

Browse files
Merge pull request #11718 from tangjicheng46/master
fix: add queue lock for refresh-checkpoints
2 parents 394ffa7 + 089a002 commit 8d0078b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/api/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ def convert_embeddings(embeddings):
593593
}
594594

595595
def refresh_checkpoints(self):
596-
shared.refresh_checkpoints()
596+
with self.queue_lock:
597+
shared.refresh_checkpoints()
597598

598599
def create_embedding(self, args: dict):
599600
try:

0 commit comments

Comments
 (0)