From 618983d6ada28023094dc96768a1aa4bee51b4ac Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Mon, 12 Feb 2024 11:55:23 -0500 Subject: [PATCH] fix: issues caught by testing /service-info --- bento_aggregation_service/app.py | 2 +- bento_aggregation_service/config.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bento_aggregation_service/app.py b/bento_aggregation_service/app.py index c61cd70..0e03d76 100644 --- a/bento_aggregation_service/app.py +++ b/bento_aggregation_service/app.py @@ -38,5 +38,5 @@ async def _git_stdout(*args) -> str: @application.get("/service-info") async def service_info(config: ConfigDependency, logger: LoggerDependency): - return build_service_info_from_pydantic_config( + return await build_service_info_from_pydantic_config( config, logger, {"serviceKind": BENTO_SERVICE_KIND}, SERVICE_TYPE, __version__) diff --git a/bento_aggregation_service/config.py b/bento_aggregation_service/config.py index 211d81a..ac6becf 100644 --- a/bento_aggregation_service/config.py +++ b/bento_aggregation_service/config.py @@ -3,7 +3,7 @@ from functools import lru_cache from typing import Annotated -from .constants import SERVICE_TYPE +from .constants import SERVICE_NAME, SERVICE_TYPE __all__ = [ "Config", @@ -14,6 +14,7 @@ class Config(BentoBaseConfig): service_id: str = str(":".join(list(SERVICE_TYPE.values())[:2])) + service_name: str = SERVICE_NAME request_timeout: int = 180 # seconds