@bitsinfra/fusee
    Preparing search index...

    Class Run<O>

    Type Parameters

    • O
    Index
    • Type Parameters

      • O

      Parameters

      Returns Run<O>

    id: string
    • Parameters

      • reason: string = "cancelled"

      Returns Promise<void>

    • The run and its journal (each record with its kind), and for a key of an object type its state. Throws NotFoundError for an unknown ID.

      Returns Promise<RunDetail>

    • Returns any

      Use describe().

    • Calls a query handler; the answer waits until the state it read is durable.

      Type Parameters

      • R
      • A = unknown

      Parameters

      Returns Promise<R>

    • Starts a new run whose journal is this one's cut just before beforeStep.

      Parameters

      • opts: { beforeStep: string; reapplySignals?: boolean; version?: number }

      Returns Promise<void>

    • Waits for the run's result (following continue-as-new and reset).

      Returns Promise<O>

    • Resumes a run that paused because a step ran out of retries (retry: { onExhausted: "pause" }): the step runs again at once, with a fresh set of attempts, on the code this process has now. Rejected if nothing is paused.

      Returns Promise<void>

    • Runs a failed run again from its failed step (a reset before it, with its signals).

      Returns Promise<void>

    • Sends a signal (a definition or its name); resolves once it is durable.

      Type Parameters

      • T

      Parameters

      Returns Promise<void>

    • Waits until a run with this ID exists. A debounced or batched run starts only when its window closes; until then result fails with NotFound.

      Returns Promise<void>

    • The run's summary: status, type, version, times, error.

      Returns Promise<RunSummary>

    • Ends the run at once; children follow their parent close policy.

      Parameters

      • reason: string = "terminated"

      Returns Promise<void>