pa.update(policyId, scalingPolicy);
Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
try {
pa.execute(policyId);
} catch (Exception e) {
// This will fail to execute when the number of servers is already zero (no change).
}
}
Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);