# If Azure Scheduled Events are not used for 24 hours (e.g. because the cluster was asleep), it will be disabled for a VM.
# When the cluster wakes up and starts using it again, the DocumentIncarnation is reset.
# We need to remove it during cleanup, otherwise azure-events-az will not process the event after wakeup
self.node.setAttr(attr_lastDocVersion, None)
else:
ocf.logger.info("monitor: all local events finished, but some resources have not completed startup yet -> wait")
else:
if curState == AVAILABLE:
if len(localAzEventIds) > 0:
if clusterHelper.otherNodesAvailable(self.node):
ocf.logger.info("monitor: can handle local events %s -> set state STOPPING - %s" % (str(list(localAzEventIds.keys())), str(list(localAzEventIds.values()))))