Datalayer Desktop - v0.0.3
    Preparing search index...

    Runtime service implementation using dependency injection. No global state, no singletons - all dependencies injected.

    Hierarchy (View Summary)

    Implements

    Index
    allRuntimes: RuntimeJSON[] = []
    expirationTimers: Map<string, Timeout> = ...
    globalExpirationCallbacks: Set<(podName: string) => void> = ...
    globalExpirationTimers: Map<string, Timeout> = ...
    lastRuntimesFetch: number | null = null
    logger: ILogger

    Logger instance for this service

    name: string

    Service name for logging

    notebookRuntimes: Map<string, NotebookRuntime> = ...
    RUNTIME_CACHE_TTL: 30000
    runtimeCreationPromises: Map<string, Promise<RuntimeJSON>> = ...
    runtimeListRefreshCallbacks: Set<(runtimes: RuntimeJSON[]) => void> = ...
    sdk: AgentRuntimesClient
    stateChangeCallbacks: Set<RuntimeStateCallback> = ...
    • Subscribe to global runtime expiration events. Called when ANY runtime on the platform expires.

      Parameters

      • callback: (podName: string) => void

        Function to call with the expired runtime's podName

      Returns () => void

      Unsubscribe function

    • Update global expiration timers for all platform runtimes. This monitors ALL runtimes and notifies when they expire.

      Parameters

      • runtimes: RuntimeJSON[]

      Returns void