only check incoming queue (ignore active queue)

This commit is contained in:
Son NK 2020-10-11 18:13:17 +02:00
parent c2e03854ef
commit 7c0b3b290b

View file

@ -16,7 +16,7 @@ _nb_failed = 0
_max_nb_fails = 10 _max_nb_fails = 10
# the maximum number of emails in incoming & active queue # the maximum number of emails in incoming & active queue
_max_incoming_active = 50 _max_incoming = 50
def get_stats(): def get_stats():
@ -36,7 +36,7 @@ def get_stats():
global _nb_failed global _nb_failed
# alert when too many emails in incoming + active queue # alert when too many emails in incoming + active queue
if incoming_queue + active_queue > _max_incoming_active: if incoming_queue > _max_incoming:
_nb_failed += 1 _nb_failed += 1
if _nb_failed > _max_nb_fails: if _nb_failed > _max_nb_fails: