Event service will now sleep for 100ms between polls instead of 1ms, reducing CPU usage significantly

This commit is contained in:
Chris Jones 2023-04-23 21:27:02 +01:00
parent d0d8640711
commit cf28617cd6

View File

@ -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: