Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions src/tui/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ def _start_services_cli(
console.print("Starting OpenRAG services...", style="bold")

async def _inner():
all_success = True
failed_services = []

# Start container services
if container_manager.is_available():
async for item in container_manager.start_services():
Expand All @@ -359,7 +362,8 @@ async def _inner():
console.print(f" {message}")

if not success and "error" in message.lower():
console.print(f" [red]✗ {message}[/red]")
all_success = False
failed_services.append(message)
else:
console.print(" [yellow]No container runtime available[/yellow]")

Expand All @@ -369,11 +373,19 @@ async def _inner():
if success:
console.print(f" {message}")
else:
console.print(f" [yellow]{message}[/yellow]")
all_success = False
failed_services.append(f"docling: {message}")
console.print(f" [red]✗ {message}[/red]")

return all_success, failed_services

try:
asyncio.run(_inner())
console.print("[green]✓ All services started[/green]")
all_success, failed_services = asyncio.run(_inner())
if all_success:
console.print("[green]✓ All services started[/green]")
else:
console.print(f"[yellow]⚠ Partial startup: {len(failed_services)} service(s) failed[/yellow]")
console.print("[yellow] Run 'Show status' for details[/yellow]")
except Exception as e:
console.print(f"[red]✗ Error starting services: {e}[/red]")

Expand Down
Loading