From ca89e87e746690f5558c1cae9ddf1e3c2bedc975 Mon Sep 17 00:00:00 2001 From: Eva Bardou <ebardou@teklia.com> Date: Mon, 3 May 2021 16:58:20 +0200 Subject: [PATCH] Fix a review related code snippet --- arkindex_worker/worker/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arkindex_worker/worker/base.py b/arkindex_worker/worker/base.py index 2bc880e6..2f684ff3 100644 --- a/arkindex_worker/worker/base.py +++ b/arkindex_worker/worker/base.py @@ -167,13 +167,13 @@ class BaseWorker(object): init_cache_db(self.cache_path) create_tables() + + # Merging parents caches (if there are any) in the current task local cache, unless the database got overridden + if self.args.database is None and paths is not None: + merge_parents_cache(paths, self.cache_path) else: logger.debug("Cache is disabled") - # Merging parents caches (if there are any) in the current task local cache, unless the database got overridden - if self.use_cache and self.args.database is None and paths is not None: - merge_parents_cache(paths, self.cache_path) - def load_secret(self, name): """Load all secrets described in the worker configuration""" secret = None -- GitLab