Hi, I'm using the Agents SDK for DO's, but I'm not clear on the right way to terminate a DO instance
Hi, I'm using the Agents SDK for DO's, but I'm not clear on the right way to terminate a DO instance. I've tried doing something like
Am I doing something wrong or is there a correct way to permanently terminate an Agent DO?
this.schedule(10, 'destroy') and the destroy() method just does a this.ctx.storage.deleteAll(); but this causes a bunch of errors to show up. Based on the errors, it looks like the DO is trying to do some schedule related things in its storage, which is now gone.Am I doing something wrong or is there a correct way to permanently terminate an Agent DO?
