From dbfa5308565b8b187e3e76316e01351c605927ab Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 12 Jun 2025 16:15:49 -0600 Subject: [PATCH 1/2] Resources should not be included in the hash --- executorlib/standalone/serialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executorlib/standalone/serialize.py b/executorlib/standalone/serialize.py index 1cd2c304..fb33be70 100644 --- a/executorlib/standalone/serialize.py +++ b/executorlib/standalone/serialize.py @@ -63,7 +63,7 @@ def serialize_funct_h5( if resource_dict is None: resource_dict = {} binary_all = cloudpickle.dumps( - {"fn": fn, "args": fn_args, "kwargs": fn_kwargs, "resource_dict": resource_dict} + {"fn": fn, "args": fn_args, "kwargs": fn_kwargs} ) task_key = fn.__name__ + _get_hash(binary=binary_all) data = { From b084427388d4b779975bd0275877bb3ca9afc546 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 22:16:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- executorlib/standalone/serialize.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/executorlib/standalone/serialize.py b/executorlib/standalone/serialize.py index fb33be70..a56333ea 100644 --- a/executorlib/standalone/serialize.py +++ b/executorlib/standalone/serialize.py @@ -62,9 +62,7 @@ def serialize_funct_h5( fn_kwargs = {} if resource_dict is None: resource_dict = {} - binary_all = cloudpickle.dumps( - {"fn": fn, "args": fn_args, "kwargs": fn_kwargs} - ) + binary_all = cloudpickle.dumps({"fn": fn, "args": fn_args, "kwargs": fn_kwargs}) task_key = fn.__name__ + _get_hash(binary=binary_all) data = { "fn": fn,