plotman icon indicating copy to clipboard operation
plotman copied to clipboard

feat: reread config file on each pass of plot loop

Open wtfrank opened this issue 4 years ago • 2 comments

Allows settings such as number of threads to be tweaked without restarting "plotman plot".

wtfrank avatar May 30 '21 20:05 wtfrank

This would at least need to be configurable. I share my configs between multiple machines and use git to transfer between and so various changes could get loaded that do not make sense while I am processing through that. Also, what should happen if the reload fails?

altendky avatar Jun 17 '21 02:06 altendky

@altendky of course old config should be retained.

            try:
                newcfg = configuration.get_validated_configs(configuration.read_configuration_text(config_path), config_path)
                cfg = newcfg
            except Exception as ex:
                print('... while reloading config: %s' % (str(ex)))

mk01 avatar Jul 06 '21 22:07 mk01