-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1969 from DSD-DBS/lifespan
refactor(backend): Replace deprecated `on_startup` and `on_shutdown`
- Loading branch information
Showing
5 changed files
with
62 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import typing as t | ||
|
||
import capellacollab.sessions.metrics as sessions_metrics | ||
import capellacollab.settings.modelsources.t4c.license_server.metrics as t4c_metrics | ||
from capellacollab.core.database import metrics as database_metrics | ||
from capellacollab.feedback import metrics as feedback_metrics | ||
|
||
metrics_registration: list[t.Callable] = [ | ||
sessions_metrics.register, | ||
t4c_metrics.register, | ||
feedback_metrics.register, | ||
database_metrics.register, | ||
] | ||
|
||
def register_metrics(): | ||
sessions_metrics.register() | ||
t4c_metrics.register() | ||
feedback_metrics.register() | ||
database_metrics.register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters