Linspector is not thread safe including this version! (0.30.0)

This commit is contained in:
Johannes Findeisen 2023-09-06 21:21:25 +02:00
commit 6f090a3982
2 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ from linspector.monitors import Monitors
__author__ = 'Johannes Findeisen'
__author_email__ = 'you@hanez.org'
__description__ = 'linspector is a infrastructure and system monitoring daemon and toolchain.'
__version__ = '0.29.0'
__version__ = '0.30.0'
sys.stderr = open('/dev/null', 'w')

View file

@ -5,6 +5,7 @@ See LICENSE.
"""
import configparser
import copy
import glob
import os
@ -16,7 +17,7 @@ from linspector.monitor import Monitor
# when changed dynamically. better: add a hash of the config file of each monitor to each monitor
# object and if it has changed reload the monitor. e.g. delete it from the scheduler and reschedule.
# if a new monitor is added at runtime it needs to be checked manually by running a "reload" command
# to lish which walks thrue all scheduled jobs and when an unknown monitor is found, schedule it.
# to lish which walks through all scheduled jobs and when an unknown monitor is found, schedule it.
class Monitors:
def __init__(self, configuration, environment, log, notifications, services, tasks):
self._configuration = configuration