Commit 8d0078b6 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #11718 from tangjicheng46/master

fix: add queue lock for refresh-checkpoints
parents 394ffa7b 089a0022
......@@ -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