| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
computer: remove the waitUntil hook from the workspace DurableObjectState.waitUntil() has no effect on a durable object's lifetime. It exists for compatibility with the Workers runtime and does not extend how long the object stays resident. The JavaScript backend was the only consumer of the workspace waitUntil hook, and it used the hook to attach a detached execution's completion promise to the object lifetime, which did nothing. A JavaScript run advances while its event stream is drained and the call into the Dynamic Worker stays in flight. That pending work keeps the object resident on its own. Remove the hook and everything that fed it: the requiresWaitUntil backend flag, the connect-time guard and the dead completion registration in the backend, the waitUntil field on the host bag and on WorkspaceOptions, and the constructor guard. The worker-javascript example stops passing the hook. | 1 个月前 |