mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-15 00:58:02 -05:00
This allows for read and write concurrency without using a global mutex. Operations may still fail they take longer than the busy timeout (5s). If we get a database lock error after waiting 5s for an operation, we have a problem. So, I think it's actually better to use a busy timeout instead of a global mutex. Alternatively, we could add a timeout to the global mutex.
2.9 KiB
2.9 KiB