mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Event service will now sleep for 100ms between polls instead of 1ms, reducing CPU usage significantly
This commit is contained in:
parent
d0d8640711
commit
cf28617cd6
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user