From b19a492e086ca64afe632866aca34b718e6c19a3 Mon Sep 17 00:00:00 2001 From: Juliano Moura Date: Wed, 5 Feb 2025 17:57:10 -0300 Subject: [PATCH 1/2] fixes bug in _prepare_workflow_request --- hatchet_sdk/clients/admin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hatchet_sdk/clients/admin.py b/hatchet_sdk/clients/admin.py index 81662d1b..e3d345b1 100644 --- a/hatchet_sdk/clients/admin.py +++ b/hatchet_sdk/clients/admin.py @@ -95,7 +95,10 @@ def _prepare_workflow_request( else options["additional_metadata"] ) if meta is not None: - options["additional_metadata"] = json.dumps(meta).encode("utf-8") + options = { + **options, + "additional_metadata": json.dumps(meta).encode("utf-8"), + } except json.JSONDecodeError as e: raise ValueError(f"Error encoding payload: {e}") From ecfabb1f2037302fcd51c3c55b16cc01a5da6517 Mon Sep 17 00:00:00 2001 From: Juliano Amadeu Lopes Moura Date: Wed, 5 Feb 2025 19:04:43 -0300 Subject: [PATCH 2/2] updates version in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d021be51..27dd1d8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hatchet-sdk" -version = "0.45.2" +version = "0.45.3" description = "" authors = ["Alexander Belanger "] readme = "README.md"