Set asyncio timeout to 0 for yielding

This commit is contained in:
Michael Stilkerich 2023-08-12 07:20:56 +02:00
parent 533bd36572
commit 930473a980

View File

@ -244,7 +244,7 @@ async def handle_pubsub_messages(channel: aioredis.client.PubSub):
else:
dockerapi.logger.error("Unknwon PubSub recieved - %s" % json.dumps(data_json))
await asyncio.sleep(0.01)
await asyncio.sleep(0.0)
except asyncio.TimeoutError:
pass