mirror of
https://github.com/craigerl/aprsd.git
synced 2025-03-23 04:44:31 -04:00
Change healthcheck email thread check timeout
Email thread by default runs every 5 minutes to check for email. The healthcheck max timeout for a loop run is also 5 minutes, leaving little room for a race condition for the healthcheck. This patch updates the healthcheck timout to 5 minutes 30 seconds.
This commit is contained in:
parent
98a62102b7
commit
03ce5a3d50
@ -63,7 +63,7 @@ def healthcheck(ctx, timeout):
|
||||
|
||||
if email_thread_last_update != "never":
|
||||
d = now - email_thread_last_update
|
||||
max_timeout = {"hours": 0.0, "minutes": 5, "seconds": 0}
|
||||
max_timeout = {"hours": 0.0, "minutes": 5, "seconds": 30}
|
||||
max_delta = datetime.timedelta(**max_timeout)
|
||||
if d > max_delta:
|
||||
console.log(f"Email thread is very old! {d}")
|
||||
|
Loading…
Reference in New Issue
Block a user