Coverage decreased (-0.06%) to 65.721% when pulling 47d4701e8b644a86aa5da47dad5e8854d76c3225 on evelynleems:bugfix-alerts into a62dce3c76567dd36b7efcaa70e03728b335f44e on CitoEngine:master.
Coverage increased (+0.1%) to 65.917% when pulling 220cb42a1d05a2c1361ce99b52d196cae56ab48f on evelynleems:bugfix-alerts into a62dce3c76567dd36b7efcaa70e03728b335f44e on CitoEngine:master.
Current problem: When
citoengine
receives multiple alerts of the same event within the same second, duplicated event actions are triggered.How to replicate?
Threshold Count
to1
andThreshold Timer
to60
.event_publisher.py
to send multiple alerts tocitoengine
within a second.Proposed Fix:
def is_action_required(self)
:if self.timer > self.event_action.threshold_timer
has to be the first condition.