@lambrospetrou @Milan Ok so finally figured it out, I think: My alarm calls a function `await doS
@lambrospetrou @Milan
Ok so finally figured it out, I think:
My alarm calls a function
If that function thows an error (e.g.
If I catch the error inline within the alarm
So my issue was that I didn't think the alarm was being triggered because the alarm swallowed the errors/logs
Ok so finally figured it out, I think:
My alarm calls a function
await doSomething() which is outside of the class (import function) which does an external async fetch call.If that function thows an error (e.g.
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)If I catch the error inline within the alarm
await doSomething().catch(e => console.error(e)) and return early, the alarm logs show upSo my issue was that I didn't think the alarm was being triggered because the alarm swallowed the errors/logs


