diff --git a/modules/scheduling/scheduler.py b/modules/scheduling/scheduler.py index fdb021899a9596f6684ddffeb4ed3531f40907fe..720d2cc4c073795c1c8056dcbf259565fbb4de2e 100644 --- a/modules/scheduling/scheduler.py +++ b/modules/scheduling/scheduler.py @@ -132,9 +132,12 @@ class AuraScheduler(threading.Thread): 1. `self.fetch_new_programme()` periodically from the API depending on the `fetching_frequency` defined in the engine configuration. 2. Loads the latest programme from the database and sets the instance state `self.programme` with current schedules. 3. Queues all playlists of the programm, if the soundssystem is ready to accept commands. + + On every cycle the configuration file is reloaded, to allow modifications while running the engine. """ while not self.exit_event.is_set(): try: + self.config.load_config() seconds_to_wait = int(self.config.get("fetching_frequency")) self.logger.info(SimpleUtil.cyan("== start fetching new schedules ==")) next_time = datetime.datetime.now() + datetime.timedelta(seconds=seconds_to_wait)