Skip to content

Commit

Permalink
fix(mm): skip prewarming ats if no nodes booted (#970)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Jul 2, 2024
1 parent 8ac0a55 commit 61e9f14
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 61e9f14

Please sign in to comment.