From 1157e1302b0209674130689d40f8a5108f50eb65 Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Tue, 30 Apr 2024 01:45:10 -0400 Subject: [PATCH] flakey flow test failing when polls killed with -9 cannot remove novip state file --- sarracenia/flow/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sarracenia/flow/__init__.py b/sarracenia/flow/__init__.py index 494b6b938..5fc7bf31d 100644 --- a/sarracenia/flow/__init__.py +++ b/sarracenia/flow/__init__.py @@ -212,7 +212,8 @@ def __init__(self, cfg=None): # metrics - dictionary with names of plugins as the keys self.metricsFlowReset() - self.had_vip = True + + self.had_vip = not os.path.exists( self.o.novipFilename ) def metricsFlowReset(self) -> None: @@ -427,6 +428,7 @@ def run(self): check if stop_requested once in a while, but never return otherwise. """ + if not self.loadCallbacks(self.plugins['load']): return