daemon: properly go through the data collect state for grpc session shutdown, also check and avoid repeating data collect or shutdown when already past those states

This commit is contained in:
Blake Harnden 2020-12-05 09:01:53 -08:00
parent b762fe664b
commit a23ef7d603
4 changed files with 19 additions and 7 deletions

View file

@ -106,6 +106,9 @@ class EventTypes(Enum):
def should_start(self) -> bool:
return self.value > self.DEFINITION_STATE.value
def already_collected(self) -> bool:
return self.value >= self.DATACOLLECT_STATE.value
class ExceptionLevels(Enum):
"""