NHMDenmark / DaSSCo-Integration

This Repo will include integration of dassco storage from northtec
0 stars 0 forks source link

Change dynamic fields in configuration files to go in database instead #100

Open Baeist opened 2 weeks ago

Baeist commented 2 weeks ago

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.

Baeist commented 4 days 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.