mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 11:58:09 +00:00
Fixing Scaleset State Check. (#2265)
This commit is contained in:
committed by
GitHub
parent
24c4219949
commit
f5b647ef1b
@ -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(
|
||||||
|
Reference in New Issue
Block a user