Files
neon/pageserver
John Spray db0deb8457 pageserver: respect task_mgr cancellation in metrics task
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.
2023-08-03 10:01:12 +01:00
..