server_lifecycle_flow.md•967 B
```mermaid
sequenceDiagram
participant User as User
participant API as API Layer
participant Orchestrator as Orchestration Engine
participant Runtime as Runtime Engine
participant Docker as Docker Container
User->>API: POST /api/v1/servers/{id}/start
API->>Orchestrator: start_server(server_id)
Orchestrator->>API: Create Task (Async Operation)
API-->>User: Return Task ID
Orchestrator->>Orchestrator: Resolve Configuration
Orchestrator->>Runtime: start_server(name, runtime_def, settings)
Runtime->>Docker: Create & Start Container
Docker-->>Runtime: Return Container ID
Runtime-->>Orchestrator: Return Process ID
Orchestrator->>Orchestrator: Update Server Status
Orchestrator->>Orchestrator: Update Task Status
User->>API: GET /api/v1/tasks/{task_id}
API->>Orchestrator: get_task(task_id)
Orchestrator-->>API: Return Task Status
API-->>User: Return Task Result
```