Add option to control frequency of queue refreshes in minutes - queueRefreshIntervalMins

This commit is contained in:
Robert Chacón
2023-04-16 09:32:17 -06:00
committed by GitHub
parent d965f51a64
commit c7d501a957

View File

@@ -3,6 +3,10 @@ import datetime
from LibreQoS import refreshShapers, refreshShapersUpdateOnly
from graphInfluxDB import refreshBandwidthGraphs, refreshLatencyGraphs
from ispConfig import influxDBEnabled, automaticImportUISP, automaticImportSplynx
try:
from ispConfig import queueRefreshIntervalMins
except:
queueRefreshIntervalMins = 30
if automaticImportUISP:
from integrationUISP import importFromUISP
if automaticImportSplynx:
@@ -44,7 +48,7 @@ def importAndShapePartialReload():
if __name__ == '__main__':
importAndShapeFullReload()
ads.add_job(importAndShapePartialReload, 'interval', minutes=30)
ads.add_job(importAndShapePartialReload, 'interval', minutes=queueRefreshIntervalMins)
if influxDBEnabled:
ads.add_job(graphHandler, 'interval', seconds=10)