From 4599989b758d36217d982a48b3b79baadba977ac Mon Sep 17 00:00:00 2001 From: malmans2 Date: Fri, 20 Dec 2024 16:10:53 +0100 Subject: [PATCH] do not use cache in direct mars --- cads_adaptors/adaptors/mars.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cads_adaptors/adaptors/mars.py b/cads_adaptors/adaptors/mars.py index b0cbbc25..bb740760 100644 --- a/cads_adaptors/adaptors/mars.py +++ b/cads_adaptors/adaptors/mars.py @@ -153,7 +153,8 @@ def retrieve(self, request: Request) -> BinaryIO: mapping=self.mapping, cache_tmp_path=self.cache_tmp_path, ) - return cached_execute_mars.retrieve([request]) + with cacholote.config.set(use_cache=False, return_cache_entry=False): + return cached_execute_mars.retrieve([request]) class MarsCdsAdaptor(cds.AbstractCdsAdaptor):