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:
parent
b762fe664b
commit
a23ef7d603
4 changed files with 19 additions and 7 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue