mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 09:13:45 +08:00
only check incoming queue (ignore active queue)
This commit is contained in:
parent
c2e03854ef
commit
7c0b3b290b
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ _nb_failed = 0
|
|||
_max_nb_fails = 10
|
||||
|
||||
# the maximum number of emails in incoming & active queue
|
||||
_max_incoming_active = 50
|
||||
_max_incoming = 50
|
||||
|
||||
|
||||
def get_stats():
|
||||
|
@ -36,7 +36,7 @@ def get_stats():
|
|||
|
||||
global _nb_failed
|
||||
# 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
|
||||
|
||||
if _nb_failed > _max_nb_fails:
|
||||
|
|
Loading…
Reference in a new issue