`this.schedule` is higher-level layer provided by the Agent base class that uses `setAlarm` under th

this.schedule
is higher-level layer provided by the Agent base class that uses
setAlarm
under the covers.
this.schedule
uses storage to figure out and set an alarm for the next event in the schedule. If you bypass the higher-level
this.schedule
and instead use
this.ctx.storage.setAlarm()
or
this.state.storage.setAlarm()
, depending upon where your base class stores it in the constructor, you shouldn't have this problem.
Was this page helpful?