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

    Function shouldRollback

    • Whether to roll back, and it says no for a named reason far more often than it says yes.

      Requires all three: quarantined already, ROLLBACK_STRIKES consecutive failures of the SAME code, and a restore point that actually exists. The last one is not a formality -- rolling back to nothing would leave a site with no database at all, which is strictly worse than the fault being repaired.

      Parameters

      • state: RepairState
      • restorePoint: { id: number; statements: number } | null

      Returns RollbackDecision