mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 03:48:09 +00:00
Scalesets that are about to be deleted don't need updated configs (#511)
This commit is contained in:
@ -537,8 +537,16 @@ class Scaleset(BASE_SCALESET, ORMMixin):
|
||||
def update_configs(self) -> None:
|
||||
from .pools import Pool
|
||||
|
||||
if self.state == ScalesetState.halt:
|
||||
logging.info(
|
||||
"not updating configs, scaleset is set to be deleted: %s",
|
||||
self.scaleset_id,
|
||||
)
|
||||
return
|
||||
|
||||
if not self.needs_config_update:
|
||||
logging.debug("config update not needed: %s", self.scaleset_id)
|
||||
return
|
||||
|
||||
logging.info("updating scaleset configs: %s", self.scaleset_id)
|
||||
|
||||
|
Reference in New Issue
Block a user