Skip to content
Snippets Groups Projects
Commit 63ad283b authored by Release Webservice's avatar Release Webservice
Browse files

Finished release 0.4.

parents 6b8a43ef 6465cd8e
Branches
Tags
No related merge requests found
......@@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
## [0.4] - 2021-08-24
- bugfix (POL1-492)
## [0.3] - 2021-08-20
- less strict inventory response validation
- gws direct & indirect checks
......
......@@ -29,8 +29,8 @@ import click
import jsonschema
from statsd import StatsClient
from brian_polling_manager \
import inventory, configuration, interfaces, gws_direct, gws_indirect
from brian_polling_manager import inventory, configuration, \
interfaces, gws_direct, gws_indirect, sensu
logger = logging.getLogger(__name__)
......@@ -74,6 +74,8 @@ def refresh(config, force=False):
:param force: if True, reload inventory data even if timestamp is same
:return: a dict, formatted as above
"""
sensu.clear_cached_values()
state = configuration.State(config['statedir'])
last = inventory.last_update_timestamp(config['inventory'])
if force or not last or last != state.last:
......
......@@ -12,6 +12,11 @@ logger = logging.getLogger(__name__)
_cached_checks = None # not using lru_cache, since params is a dict
def clear_cached_values():
global _cached_checks
_cached_checks = None
def load_all_checks(params, namespace='default'):
global _cached_checks
if _cached_checks is not None:
......
......@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='brian-polling-manager',
version="0.3",
version="0.4",
author='GEANT',
author_email='swd@geant.org',
description='service for managing BRIAN polling checks',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment