Skip to content
Snippets Groups Projects

Refactoring use_cache attribute on Worker classes

Merged Eva Bardou requested to merge detect-use-cache into master
All threads resolved!
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading