From 204c1e89d6de8a721767346e122e3b8244d68283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 16:22:02 +0100 Subject: [PATCH] start publisher before index updater MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index f6b6295..55d1110 100644 --- a/server/app.py +++ b/server/app.py @@ -156,9 +156,9 @@ def mqtt_publisher(): sys.exit() if __name__ == "__main__": - tube_index_updater_thread = Process(target=update_tube_index) - tube_index_updater_thread.start() flask_thread = Process(target=flask_api) flask_thread.start() publisher_thread = Process(target=mqtt_publisher) publisher_thread.start() + tube_index_updater_thread = Process(target=update_tube_index) + tube_index_updater_thread.start()