Clarify cloud config refresh task ownership

This commit is contained in:
Joe Florencio
2026-07-09 12:49:20 -07:00
parent 98ece71901
commit 830360a61a
+2 -2
View File
@@ -23,8 +23,8 @@ pub fn cloud_config_bundle_loader(
CLOUD_CONFIG_BUNDLE_TIMEOUT,
);
let (loader, publisher) = CloudConfigBundleLoader::pending();
// Intentionally detach the task that owns startup and refresh. Publishing
// stops the lifecycle if this loader and all clones were dropped.
// This task owns startup and background refresh, and exits once every
// associated loader has been dropped.
drop(tokio::spawn(async move {
let result = service.load_startup_bundle().await;
let (initial_bundle, refresh_in) = match result {