@maschinenlesbar.org/openka-cli
    Preparing search index...

    Class RunStatusRecorder

    Keeps a run's status file. Every call is cheap and never throws: the file is written on a job's start, discovery and end, on the run's end, and in between at most every RUN_STATUS_EVERY_MS; a write that fails goes to onError once, and the sync goes on without a status — a status must not be what stops a sync.

    Index
    • Parameters

      • store: Pick<FileStore, "putRunStatus">
      • options: {
            command: string;
            jobs: readonly { job: string; source: string }[];
            now: () => Date;
            onError?: (err: unknown) => void;
        }

      Returns RunStatusRecorder

    • Parameters

      • job: string
      • total: number

      Returns void

    • Parameters

      Returns void

    • The run is over: the file stays, as the last run's summary.

      Parameters

      Returns void

    • Parameters

      • job: string
      • event: { action: string; index: number; total: number }

      Returns void

    • Parameters

      • job: string

      Returns void