From fbdcb484379d814c94bed6adb7ae6adfc874e6f5 Mon Sep 17 00:00:00 2001 From: Peter Freytag Date: Thu, 4 Sep 2025 09:07:04 +0200 Subject: [PATCH] update cmempy user access token each time a workflow starts --- CHANGELOG.md | 4 +++- cmem_plugin_loopwf/task.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc9c501..86c3293 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] -TODO: add at least one Added, Changed, Deprecated, Removed, Fixed or Security section +### Fixed + +- update cmempy user access token each time a workflow starts ## [0.6.0] 2025-08-04 diff --git a/cmem_plugin_loopwf/task.py b/cmem_plugin_loopwf/task.py index 514899e..3eca843 100644 --- a/cmem_plugin_loopwf/task.py +++ b/cmem_plugin_loopwf/task.py @@ -124,6 +124,8 @@ def start(self) -> bool: if self.logger: self.logger.info(f"Starting workflow execution: {self.entity_as_json_str()}") try: + if self.execution_context: + setup_cmempy_user_access(context=self.execution_context.user) if self.schema.type_uri == FileEntitySchema().type_uri and self.input_mime_type != "": response = execute_workflow_io( project_name=self.project_id,