mtingers / botic

Free, open-source, extendable crypto trading bot
GNU General Public License v3.0
8 stars 5 forks source link

Hot config reloading #3

Open alxmrs opened 3 years ago

alxmrs commented 3 years ago

Ideally, the bot should monitor the config file for changes. When a change occurs to the file, it should update the app state. This will allow users to change the bot behavior without restarting the running app.

mtingers commented 3 years ago

Thanks for pointing this out. It will need further discussion, but the classic way is to send a HUP signal for configuration reloads. If you see benefit in auto-reloading on change versus sending a signal, what I'm thinking:

  1. Create a configuration option to enable this (default is disabled)
  2. Always have the default HUP signal style enabled.