diff --git a/src/scheduler.py b/src/scheduler.py index 17f33bfc..85041606 100644 --- a/src/scheduler.py +++ b/src/scheduler.py @@ -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()