Our DO now has an in-memory `wakeupType` property, that we start as the empty string. The possible

Our DO now has an in-memory wakeupType property, that we start as the empty string. The possible reasons for a wakeup are (1) a fetch, (2) a websocket message, or (3) an alarm. Each of these comes through a single entry point (whereas allowing incoming RPC calls muddies that, so we've put those back to being fetches). When any of those points is hit while the wakeupType is still empty we set the type accordingly, and that determines how we handle log output for the rest of that wakeup.
Was this page helpful?