@drupflare/workforce - v0.3.0
    Preparing search index...

    Function recordOutcome

    • Folds one outcome into the state.

      A different failure code resets the strike count: two unrelated faults are not evidence of one durable condition, and summing them quarantines something for having two bad days.

      Parameters

      • state: RepairState
      • outcome: { code?: string | null; ok: boolean }
      • nowMs: number

      Returns RepairState