
"executionModel": "durableObject", "outcome": "canceled",
wrangler: https://github.com/cloudflare/workers-sdk/Since DurableObjects are basically in-memory classes, their long-term state cannot be guaranteed - especially in cases which involve the Hibernation API. When the DurableObject hibernates, the existing websocket connections are kept alive "outside" of the class - and when one wakes up, the Workers runtime will reinstantiate the DurableObject with a new state.
// ... During periods of inactivity, the Durable Object can be evicted
// from memory, but the WebSocket connection will remain open. If at some later point the
// WebSocket receives a message, the runtime will recreate the Durable Object
// (run the ) and deliver the message to the appropriate handler.
RPC receiver does not implement the method [x]await doSomething()if (!res.ok) throw new Error()await doSomething().catch(e => console.error(e))alarm() this.ctx.blockConcurrencyWhile(async () => {
await this.migrate();
});constructorserializeAttachmentdeserializeAttachment