Open Baeist opened 5 months ago
Added these to the db instead of being in jsons. Kept the other fields (which should be mostly static) in the json config file for now. There is a script for initialising the database with the values which should be run before starting any services for the first time.
When updating json files we risk multiple services trying to access the same document simultaneously which will cause the service to crash. This is particularly important for the run_config file.
We may want to expand on this so each service has its own configurable and dynamic fields. These fields could include pause length, warning/errors before pause mode, retry attempts, email and slack message frequency for repetitive warning/errors.