1929
This commit is contained in:
@@ -40,7 +40,7 @@ import nats
|
|||||||
# =========================
|
# =========================
|
||||||
NB_URL = "http://netbox.gt-tiso.ikeja.co.za" # Base URL
|
NB_URL = "http://netbox.gt-tiso.ikeja.co.za" # Base URL
|
||||||
NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623" # keep as provided
|
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.
|
# 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"))
|
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_WORK = "deviceconfig" # direct exchange (immediate)
|
||||||
RMQ_EXCHANGE_DELAYED = "deviceconfig.delayed" # delayed exchange (x-delayed-message)
|
RMQ_EXCHANGE_DELAYED = "deviceconfig.delayed" # delayed exchange (x-delayed-message)
|
||||||
RMQ_ROUTING_KEY = "deviceconfig"
|
RMQ_ROUTING_KEY = "deviceconfig"
|
||||||
RMQ_TIMEOUT = 3.0
|
RMQ_TIMEOUT = 5.0
|
||||||
|
|
||||||
# ---- Human-editable delay (milliseconds). Set to 0 to disable delay.
|
# ---- Human-editable delay (milliseconds). Set to 0 to disable delay.
|
||||||
# Example: 600000 = 10 minutes
|
# 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 gate: skip re-running sot-updater-scheduler if recently run (seconds)
|
||||||
posture_analyzer = "sot-updater-scheduler"
|
posture_analyzer = "sot-updater-scheduler"
|
||||||
sot_timeout = 1800
|
sot_timeout = 300
|
||||||
|
|
||||||
# Product -> Tag slug mapping (kept unchanged, though not used now)
|
# Product -> Tag slug mapping (kept unchanged, though not used now)
|
||||||
PRODUCT_TAG_SLUG = {
|
PRODUCT_TAG_SLUG = {
|
||||||
|
|||||||
Reference in New Issue
Block a user