mailcow/data/Dockerfiles/dockerapi
Michael Stilkerich 533bd36572 Fix CPU load of dockerapi container
Previously the handle_pubsub_messages() loop was executing every 10ms
when there was no message available. Now reading from the redis network
socket will block (the coroutine) for up to 30s before it returns when
no message is available.

Using channel.listen() would be even better, but it lacks the
ignore_subscribe_messages option and I could not figure out how to
filter the returned messages.
2023-08-05 20:58:34 +02:00
..
modules [Dockerapi] add missing import os 2023-07-07 11:32:28 +02:00
docker-entrypoint.sh [Dockerapi] add pubsub handler for broadcasting in ha setup 2023-06-12 16:37:48 +02:00
Dockerfile [Dockerapi] add pubsub handler for broadcasting in ha setup 2023-06-12 16:37:48 +02:00
main.py Fix CPU load of dockerapi container 2023-08-05 20:58:34 +02:00