From a00761e37638230d0b86b52dc19696c3c1f89e58 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Mon, 8 Nov 2021 14:22:58 +0000 Subject: [PATCH] Start prometheus before running startup_actions Fixes https://github.com/mautrix/telegram/issues/687 --- mautrix/util/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix/util/program.py b/mautrix/util/program.py index c467f31f..38767c64 100644 --- a/mautrix/util/program.py +++ b/mautrix/util/program.py @@ -217,9 +217,9 @@ async def start(self) -> None: First lifecycle method called inside the asyncio event loop. Extend this if you want more control over startup than just filling startup_actions in the prepare step. """ - await asyncio.gather(*(self.startup_actions or [])) if self._automatic_prometheus: self.start_prometheus() + await asyncio.gather(*(self.startup_actions or [])) def prepare_stop(self) -> None: """