mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #500 from LibreQoE/post_integration_hooks
Post integration hooks for scheduler.conf
This commit is contained in:
commit
eb592fc8d3
@ -13,6 +13,7 @@ if automatic_import_sonar():
|
||||
from integrationSonar import importFromSonar
|
||||
from apscheduler.schedulers.background import BlockingScheduler
|
||||
from apscheduler.executors.pool import ThreadPoolExecutor
|
||||
import os.path
|
||||
|
||||
ads = BlockingScheduler(executors={'default': ThreadPoolExecutor(1)})
|
||||
|
||||
@ -40,6 +41,12 @@ def importFromCRM():
|
||||
except:
|
||||
print("Failed to import from Sonar")
|
||||
|
||||
# Post-CRM Hooks
|
||||
path = get_libreqos_directory() + "/bin/post_integration_hook.sh"
|
||||
binPath = get_libreqos_directory() + "/bin"
|
||||
if os.path.isfile(path):
|
||||
subprocess.Popen(path, cwd=binPath)
|
||||
|
||||
def graphHandler():
|
||||
try:
|
||||
refreshBandwidthGraphs()
|
||||
|
Loading…
Reference in New Issue
Block a user