From 7a1f928b52b2eec1b6ca5172827b3540da82678c Mon Sep 17 00:00:00 2001 From: Frankie Fisher Date: Sun, 30 May 2021 20:58:21 +0100 Subject: [PATCH] feat: reread config file on each pass of plot loop allows settings such as number of threads to be tweaked without restarting plotman --- src/plotman/plotman.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plotman/plotman.py b/src/plotman/plotman.py index d3468735..ec91aa07 100755 --- a/src/plotman/plotman.py +++ b/src/plotman/plotman.py @@ -142,6 +142,8 @@ def main(): if args.cmd == 'plot': print('...starting plot loop') while True: + config_text = configuration.read_configuration_text(config_path) + cfg = configuration.get_validated_configs(config_text, config_path) wait_reason = manager.maybe_start_new_plot(cfg.directories, cfg.scheduling, cfg.plotting) # TODO: report this via a channel that can be polled on demand, so we don't spam the console