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

    Function runFillWindow

    • Drives one warm window: connect, pump one message per fill, close.

      The driver lives outside the Durable Object: the budget resets on an incoming message and an object cannot send itself one. The Worker is a relay and its wall time is not charged.

      Three bounds: maxFills (DO requests and rows written, 100k/day each), wallBudgetMs (billed duration; a held socket is non-hibernatable) and the platform's 15-minute connection maximum.

      Parameters

      • env: FillWindowEnv
      • site: string
      • opts: { maxFills?: number; wallBudgetMs?: number } = {}

      Returns Promise<FillWindowResult | FillWindowFailure>

      discriminated by ok; a window that could not open has no outcomes at all