mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 18:02:56 +00:00
This previously relied on seeing a channel close, when Tenant is destroyed: this task ran beyond Tenant::shutdown, whereas the idea of that shutdown function is that all the per-tenant background tasks are joined when it completes. Instead, stop this task as soon as background tasks for the Tenant are cancelled, making the behavior of shutdown() much more obvious and bringing the task into line with how we do shutdown in other background tasks.