shutdown missing scalesets during resize (#860)

This commit is contained in:
bmc-msft
2021-05-06 12:00:09 -04:00
committed by GitHub
parent 7c937a9b97
commit 007ecf2efe

View File

@ -468,6 +468,10 @@ class Scaleset(BASE_SCALESET, ORMMixin):
SCALESET_LOG_PREFIX + "scaleset is unavailable. scaleset_id:%s",
self.scaleset_id,
)
# if the scaleset is missing, this is an indication the scaleset
# was manually deleted, rather than having OneFuzz delete it. As
# such, we should go thruogh the process of deleting it.
self.set_shutdown(now=True)
return
if size == self.size: