mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-06 23:35:56 -05:00
Event service will now sleep for 100ms between polls instead of 1ms, reducing CPU usage significantly
This commit is contained in:
@@ -45,7 +45,7 @@ class FastAPIEventService(EventServiceBase):
|
||||
)
|
||||
|
||||
except Empty:
|
||||
await asyncio.sleep(0.001)
|
||||
await asyncio.sleep(0.1)
|
||||
pass
|
||||
|
||||
except asyncio.CancelledError as e:
|
||||
|
||||
Reference in New Issue
Block a user