Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrem committed Nov 12, 2023
1 parent a1941f9 commit bbf769e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions agenta-backend/agenta_backend/routers/app_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
AppVariantOutput,
AddVariantFromImagePayload,
EnvironmentOutput,
Image
Image,
)
from agenta_backend.models import converters

Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion agenta-backend/agenta_backend/services/container_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
docker_utils.restart_container(container_id)

0 comments on commit bbf769e

Please sign in to comment.