Skip to content
Commit Detail

Commit b2e22f4

Author
Hood Chatham <roberthoodchatham@gmail.com> 2026-03-04 14:48:58 +0100
Parents
349396e
Tree
b136f02
Implement abortIsolate() in cloudflare:workers module

Add abortIsolate(reason) API that condemns and terminates the current JS
isolate, like when excessively exceeding memory limit. The next request creates
a new isolate.

Since we don't currently have a mechanism in workerd to start a new isolate, for
now it just aborts the process. The idea is that when we add a memory limiter
implementation for workerd we can actually implement restarting the isolate
within the workerd process. For now, this is good enough

Files changed