mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04: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:
|
except Empty:
|
||||||
await asyncio.sleep(0.001)
|
await asyncio.sleep(0.1)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
except asyncio.CancelledError as e:
|
except asyncio.CancelledError as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user