Skip to content

Commit

Permalink
trigger correct bg task
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher committed Mar 8, 2024
1 parent df21062 commit 2ecdab5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nexus/src/app/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 2ecdab5

Please sign in to comment.