From 2ecdab5248a300facc4ea3b8184671c5d5bcce7c Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Fri, 8 Mar 2024 09:18:41 -0500 Subject: [PATCH] trigger correct bg task --- nexus/src/app/deployment.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nexus/src/app/deployment.rs b/nexus/src/app/deployment.rs index 3485a4fa3f..902f075c31 100644 --- a/nexus/src/app/deployment.rs +++ b/nexus/src/app/deployment.rs @@ -94,11 +94,11 @@ impl super::Nexus { .blueprint_target_set_current(opctx, new_target) .await?; - // We have a new target: trigger the background task to realize it if - // it's enabled. + // We have a new target: trigger the background task to load this + // blueprint and hand it off to execution if it's enabled. if new_target.enabled { self.background_tasks - .activate(&self.background_tasks.task_blueprint_executor); + .activate(&self.background_tasks.task_blueprint_loader); } Ok(new_target) @@ -120,10 +120,10 @@ impl super::Nexus { .await?; // If we just enabled this target, activate the background task to - // realize it. + // load this blueprint and hand it off to execution. if new_target.enabled { self.background_tasks - .activate(&self.background_tasks.task_blueprint_executor); + .activate(&self.background_tasks.task_blueprint_loader); } Ok(new_target)