Skip to content
Commit Detail

Commit 79757a5

Author
Gabi Villalonga Simon <gvillalongasimon@cloudflare.com> 2026-02-27 14:19:49 -0600
Parents
d66221f
Tree
d2ed378
containers: Cancel async destruction from ContainerClient if a new ContainerClient takes over

The new system makes it so we have a containerCleanupCanceler reference
that a container destructor uses to wrap async calls that should be
cancelled if a new ContainerClient of the same id takes over.

This fixes issues where we abort a DO container, but then we call it
again, racing the old destructor tasks against the new ContainerClient.

Files changed