drupflare/worker - v1.0.0
    Preparing search index...

    Function recordOutcome

    • Folds one outcome into the state.

      A DIFFERENT failure code resets the strike count rather than adding to it. Two unrelated faults are not evidence of one durable condition, and summing them is how a site gets quarantined for having two different bad days.

      Parameters

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

      Returns RepairState