From bbf769e6fd3079057529f8e8fb5611d2be753e24 Mon Sep 17 00:00:00 2001 From: Akrem Abayed Date: Sun, 12 Nov 2023 14:47:19 +0100 Subject: [PATCH] format --- agenta-backend/agenta_backend/routers/app_router.py | 4 ++-- agenta-backend/agenta_backend/services/container_manager.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/agenta-backend/agenta_backend/routers/app_router.py b/agenta-backend/agenta_backend/routers/app_router.py index 4f1e34dc7c..5ddda04154 100644 --- a/agenta-backend/agenta_backend/routers/app_router.py +++ b/agenta-backend/agenta_backend/routers/app_router.py @@ -22,7 +22,7 @@ AppVariantOutput, AddVariantFromImagePayload, EnvironmentOutput, - Image + Image, ) from agenta_backend.models import converters @@ -39,7 +39,7 @@ ) # noqa pylint: disable-all elif os.environ["FEATURE_FLAG"] in ["ee"]: from agenta_backend.ee.services import ( - deployment_manager + deployment_manager, ) # noqa pylint: disable-all else: from agenta_backend.services import deployment_manager diff --git a/agenta-backend/agenta_backend/services/container_manager.py b/agenta-backend/agenta_backend/services/container_manager.py index 9b491d8de1..f34b025224 100644 --- a/agenta-backend/agenta_backend/services/container_manager.py +++ b/agenta-backend/agenta_backend/services/container_manager.py @@ -190,10 +190,11 @@ async def get_image_details_from_docker_hub( ) return image_details["Id"] + def restart_container(container_id: str): """Restart docker container. Args: container_id (str): The id of the container to restart. """ - docker_utils.restart_container(container_id) \ No newline at end of file + docker_utils.restart_container(container_id)