add queue lock for refresh-checkpoints
This commit is contained in:
parent
394ffa7b0a
commit
089a0022ae
@ -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