but it would require you to change the built code
but it would require you to change the built code

"executionModel": "durableObject", "outcome": "canceled",
wrangler: https://github.com/cloudflare/workers-sdk/await doSomething() which is outside of the class (import function) which does an external async fetch call.if (!res.ok) throw new Error()) then the alarm just dies and no logs appear in console (hence me thinking it wasn't being triggered)await doSomething().catch(e => console.error(e)) and return early, the alarm logs show upalarm() handler should be wrapped in a try-catch.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.constructor
serializeAttachment / deserializeAttachment to store persistent state?