Fixing Scaleset State Check. (#2265)

This commit is contained in:
Noah McGregor Harper
2022-08-17 15:39:02 -07:00
committed by GitHub
parent 24c4219949
commit f5b647ef1b

View File

@ -949,8 +949,8 @@ class Scaleset(BASE_SCALESET, ORMMixin):
def sync_auto_scale_settings(self) -> Optional[Error]: def sync_auto_scale_settings(self) -> Optional[Error]:
from .pools import Pool from .pools import Pool
# No need to update tables when in shutdown state # Only update settings when scaleset is running
if self.state == ScalesetState.shutdown: if self.state != ScalesetState.running:
return None return None
logging.info( logging.info(