sathoro
05/13/2023, 4:46 PMsathoro
05/13/2023, 4:58 PMsathoro
05/13/2023, 6:45 PMUnsmart | Tech debt
05/13/2023, 6:54 PMsathoro
05/13/2023, 7:04 PMthis.state.idFromName
would be undefined
in an alarm handler? when the alarm handler is running and there is an alarm set to be run and new code is deployed, it runs the next alarm after the deploy but this.state.idFromName
is undefined
and the alarm on the original DO is never runUnsmart | Tech debt
05/13/2023, 7:06 PMsathoro
05/13/2023, 7:07 PMsathoro
05/13/2023, 7:07 PMsathoro
05/13/2023, 7:08 PMsathoro
05/13/2023, 7:09 PMsathoro
05/13/2023, 7:16 PMhttps://cdn.discordapp.com/attachments/773219443911819284/1107023585152880650/image.png▾
Unsmart | Tech debt
05/13/2023, 7:20 PMsathoro
05/13/2023, 7:20 PMsathoro
05/13/2023, 7:21 PMnull
idFromName
alarm gets called immediately after the errorsathoro
05/13/2023, 7:21 PMitty-durable
, not sure if that is somehow causing itUnsmart | Tech debt
05/13/2023, 7:22 PMsathoro
05/13/2023, 7:24 PMsathoro
05/13/2023, 7:24 PMsathoro
05/13/2023, 7:25 PMUnsmart | Tech debt
05/13/2023, 7:26 PMfetch
on a stub that you got using idFromName(<name>)
.
Basically it will never be there for an alarm unless it happens to still be active after a fetch request.sathoro
05/13/2023, 7:26 PMsathoro
05/13/2023, 7:27 PMsathoro
05/13/2023, 7:27 PMUnsmart | Tech debt
05/13/2023, 7:27 PMsathoro
05/13/2023, 7:27 PMsathoro
05/13/2023, 7:27 PMsathoro
05/13/2023, 7:28 PMUnsmart | Tech debt
05/13/2023, 7:28 PMsathoro
05/13/2023, 7:28 PMsathoro
05/13/2023, 7:28 PM