Skip to content

Commit 492874d

Browse files
Half-Shottulir
authored andcommitted
Start prometheus before running startup_actions
Fixes mautrix/telegram#687
1 parent 29963fa commit 492874d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix/util/program.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ async def start(self) -> None:
217217
First lifecycle method called inside the asyncio event loop. Extend this if you want more
218218
control over startup than just filling startup_actions in the prepare step.
219219
"""
220-
await asyncio.gather(*(self.startup_actions or []))
221220
if self._automatic_prometheus:
222221
self.start_prometheus()
222+
await asyncio.gather(*(self.startup_actions or []))
223223

224224
def prepare_stop(self) -> None:
225225
"""

0 commit comments

Comments
 (0)