diff --git a/dtable_events/app/config.py b/dtable_events/app/config.py index ab8624e1..e88b8668 100644 --- a/dtable_events/app/config.py +++ b/dtable_events/app/config.py @@ -66,6 +66,9 @@ def get_config(config_file): config = configparser.ConfigParser() + if not os.path.exists(config_file): + logger.debug("Config file %s not found" % config_file) + return config try: config.read(config_file) except Exception as e: diff --git a/dtable_events/tasks/clean_db_records_worker.py b/dtable_events/tasks/clean_db_records_worker.py index 6f6438e6..ac180bd7 100644 --- a/dtable_events/tasks/clean_db_records_worker.py +++ b/dtable_events/tasks/clean_db_records_worker.py @@ -30,7 +30,7 @@ def __init__(self, config): def _parse_config(self, config): section_name = 'CLEAN DB' - self._enabled = config.getboolean(section_name, 'enabled', fallback=False) + self._enabled = config.getboolean(section_name, 'enabled', fallback=True) # Read retention times from config file dtable_snapshot = config.getint(section_name, 'keep_dtable_snapshot_days', fallback=365)