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

    Function solveWarmInterval

    • The next warm interval, from whether the last window's warming chain actually held.

      The band above the verified interval is worth 1,706 rows a day and nobody knows whether it is safe, so each object finds out and pays for being wrong once.

      Climbs one step after WARM_CLEAN_WINDOWS windows one incarnation spanned, and retreats all the way to WARM_INTERVAL_VERIFIED_MS on a window it did not (the next-lower step has no more evidence than the one that failed).

      Parameters

      • state: { clean: number; intervalMs: number }
      • survived: boolean | undefined

        whether the closing window held, from windowVerdict; undefined holds the state

      • ceilingMs: number = DEFAULT_CEILING_MS

      Returns { clean: number; intervalMs: number }