mise API - v0.0.0
    Preparing search index...

    Interface RetrieveWatchEvents

    Consumer callbacks for engine progress.

    interface RetrieveWatchEvents {
        reconnect?: (
            attempt: number,
            maxAttempts: number,
            watching: number,
        ) => void;
        retryRound?: (attempt: number, retryMax: number, count: number) => void;
        stillWaiting?: (
            waiting: RetrieveTask[],
            waitedS: number,
        ) => Promise<boolean>;
        task?: (
            task: RetrieveTask,
            status: RetrieveProgressStatus,
            phase: "watching" | "retrying",
        ) => void;
    }
    Index
    reconnect?: (attempt: number, maxAttempts: number, watching: number) => void

    The watch socket dropped and is being reopened. Reported because a silent reconnection during a long pull looks identical to a stall.

    retryRound?: (attempt: number, retryMax: number, count: number) => void

    A refire round for unconfirmed series is starting.

    stillWaiting?: (waiting: RetrieveTask[], waitedS: number) => Promise<boolean>

    The PACS has sent nothing for a while and CUBE does not have these series either: whether to keep waiting. A surface that can be asked answers it (the operator decides, never a timer); with no answerer the watch waits its longer window and calls the series unconfirmed.

    Type Declaration

      • (waiting: RetrieveTask[], waitedS: number): Promise<boolean>
      • Parameters

        • waiting: RetrieveTask[]

          The series still waiting on a first file.

        • waitedS: number

          How long the PACS has been silent, in seconds.

        Returns Promise<boolean>

        True to keep waiting another window.

    task?: (
        task: RetrieveTask,
        status: RetrieveProgressStatus,
        phase: "watching" | "retrying",
    ) => void

    One series changed state or progressed.