This commit is contained in:
2026-03-22 19:29:41 +02:00
parent dfaf9d19b4
commit 801b91b85f

View File

@@ -40,7 +40,7 @@ import nats
# =========================
NB_URL = "http://netbox.gt-tiso.ikeja.co.za" # Base URL
NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623" # keep as provided
NB_TIMEOUT = 3.0 # seconds per HTTP GET
NB_TIMEOUT = 6.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", "60.0"))
@@ -57,7 +57,7 @@ RMQ_VHOST = "app"
RMQ_EXCHANGE_WORK = "deviceconfig" # direct exchange (immediate)
RMQ_EXCHANGE_DELAYED = "deviceconfig.delayed" # delayed exchange (x-delayed-message)
RMQ_ROUTING_KEY = "deviceconfig"
RMQ_TIMEOUT = 3.0
RMQ_TIMEOUT = 5.0
# ---- Human-editable delay (milliseconds). Set to 0 to disable delay.
# Example: 600000 = 10 minutes
@@ -65,7 +65,7 @@ RMQ_DELAY_MS = 15000
# Posture analyzer gate: skip re-running sot-updater-scheduler if recently run (seconds)
posture_analyzer = "sot-updater-scheduler"
sot_timeout = 1800
sot_timeout = 300
# Product -> Tag slug mapping (kept unchanged, though not used now)
PRODUCT_TAG_SLUG = {