Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start prometheus before running startup_actions #63

Merged
merged 1 commit into from
Nov 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mautrix/util/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down