diff --git a/apps/api/src/api/tool_instances.py b/apps/api/src/api/tool_instances.py index 06477b0..d26e6de 100644 --- a/apps/api/src/api/tool_instances.py +++ b/apps/api/src/api/tool_instances.py @@ -23,12 +23,15 @@ from src.models.tool_instance import ToolInstance from src.models.tool_type import ToolType from src.models.user import User from src.services.docker import ( + check_tunnel_health, connect_container_to_network, ensure_instance_directory, execute_compose_command, find_free_port, get_container_id, get_container_name, + recreate_tunnel, + render_compose_template, start_cloudflared_tunnel, stop_cloudflared_tunnel, write_compose_file, diff --git a/apps/api/src/services/docker.py b/apps/api/src/services/docker.py index 312e65b..2416c6a 100644 --- a/apps/api/src/services/docker.py +++ b/apps/api/src/services/docker.py @@ -370,7 +370,7 @@ def recreate_tunnel( return start_cloudflared_tunnel(container_name, port) -def check_tunnel_health(url: str, timeout: int = 10) -> dict[str, any]: +def check_tunnel_health(url: str, timeout: int = 10) -> dict[str, Any]: """Check if a tunnel URL is healthy. Args: