From 5378b596b22686765dd66feaaa2b751b5e621896 Mon Sep 17 00:00:00 2001
From: Yoann Schneider <yschneider@teklia.com>
Date: Wed, 13 Jul 2022 15:31:59 +0000
Subject: [PATCH] remove dev from condition

---
 arkindex_worker/worker/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arkindex_worker/worker/base.py b/arkindex_worker/worker/base.py
index 4c9c9acb..b25e2f56 100644
--- a/arkindex_worker/worker/base.py
+++ b/arkindex_worker/worker/base.py
@@ -200,7 +200,7 @@ class BaseWorker(object):
         self.secrets = {name: self.load_secret(name) for name in required_secrets}
 
         # Load worker run configuration when available and not in dev mode
-        if os.environ.get("ARKINDEX_WORKER_RUN_ID") and not self.args.dev:
+        if os.environ.get("ARKINDEX_WORKER_RUN_ID"):
             worker_run = self.request(
                 "RetrieveWorkerRun", id=os.environ["ARKINDEX_WORKER_RUN_ID"]
             )
-- 
GitLab