Merge pull request #11718 from tangjicheng46/master
fix: add queue lock for refresh-checkpoints
This commit is contained in:
commit
8d0078b6ef
@ -593,7 +593,8 @@ class Api:
|
|||||||
}
|
}
|
||||||
|
|
||||||
def refresh_checkpoints(self):
|
def refresh_checkpoints(self):
|
||||||
shared.refresh_checkpoints()
|
with self.queue_lock:
|
||||||
|
shared.refresh_checkpoints()
|
||||||
|
|
||||||
def create_embedding(self, args: dict):
|
def create_embedding(self, args: dict):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user