Skip to content

Commit

Permalink
fix(mm): skip prewarming ats if no nodes booted
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Jul 1, 2024
1 parent 2c0f198 commit 240c1f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion svc/pkg/mm-config/ops/version-prepare/src/prewarm_ats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ pub async fn prewarm_ats_cache(
let mut vlan_ips_in_region = vlan_ips.iter().filter(|row| row.datacenter_id == region_id);
let vlan_ip_count = vlan_ips_in_region.clone().count() as i64;

ensure!(vlan_ip_count != 0, "no ats servers found");
if vlan_ip_count == 0 {
continue;
}

// Pass artifact URLs to the job
let parameters = prewarm_ctx
Expand Down

0 comments on commit 240c1f9

Please sign in to comment.