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,