From a991ded73d215cd83482e83fb8e91ac9c5f502db Mon Sep 17 00:00:00 2001
From: manonBlanco <blanco@teklia.com>
Date: Wed, 28 Feb 2024 15:20:51 +0100
Subject: [PATCH] Store model_version details regardless of model version
 configuration

---
 arkindex_worker/worker/base.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arkindex_worker/worker/base.py b/arkindex_worker/worker/base.py
index d638df80..765afd43 100644
--- a/arkindex_worker/worker/base.py
+++ b/arkindex_worker/worker/base.py
@@ -148,6 +148,13 @@ class BaseWorker:
         # there is at least one available sqlite database either given or in the parent tasks
         self.use_cache = False
 
+        # model_version_id will be updated in configure() using the worker_run's model version
+        # or in configure_for_developers() from the environment
+        self.model_version_id = None
+        # model_details will be updated in configure() using the worker_run's model version
+        # or in configure_for_developers() from the environment
+        self.model_details = {}
+
         # task_parents will be updated in configure_cache() if the cache is supported,
         # if the task ID is set and if no database is passed as argument
         self.task_parents = []
-- 
GitLab