Hacker News new | ask | show | jobs
by _pdp_ 252 days ago
I browsed through the documents but it does not seem to be possible to auto destroy a sandbox after certain amount of idle time. This forces who ever is implementing this to do their own cleanup. It is kind of missed opportunity if you ask me as this is a big pain. It is sold as fire and forget but it seems that more serious workflows will require also a lot of supporting infrastructure.
1 comments

You can easily set an alarm in the durable object to check if it should be killed and then call destroy yourself. Just a couple lines of code.
Nice. Thanks for the tip. I did not know that this was a thing. I will look it up.