From 8b45630ee40ac016a540474b4c3eba818709dedd Mon Sep 17 00:00:00 2001 From: pavel Date: Thu, 12 Mar 2026 10:17:29 +0200 Subject: [PATCH] 1017 --- files/nats_registration_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/nats_registration_listener.py b/files/nats_registration_listener.py index 76b3880..53a5ce4 100644 --- a/files/nats_registration_listener.py +++ b/files/nats_registration_listener.py @@ -43,7 +43,7 @@ NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623" # keep as provided NB_TIMEOUT = 3.0 # seconds per HTTP GET # Cache for MAC -> NetBox lookup result (seconds). Keeps NetBox load down under chatty devices. -NB_LOOKUP_CACHE_TTL = float(os.environ.get("NB_LOOKUP_CACHE_TTL", "10.0")) +NB_LOOKUP_CACHE_TTL = float(os.environ.get("NB_LOOKUP_CACHE_TTL", "60.0")) NB_LOOKUP_CACHE = {} # mac_norm -> (expires_monotonic, cached_tuple) # =========================