diff --git a/src/executorlib/standalone/hdf.py b/src/executorlib/standalone/hdf.py index 5e8970f4..14ffe4ad 100644 --- a/src/executorlib/standalone/hdf.py +++ b/src/executorlib/standalone/hdf.py @@ -11,6 +11,7 @@ "kwargs": "input_kwargs", "output": "output", "error": "error", + "resource_dict": "resource_dict", "runtime": "runtime", "queue_id": "queue_id", "error_log_file": "error_log_file", @@ -61,6 +62,12 @@ def load(file_name: str) -> dict: data_dict["kwargs"] = cloudpickle.loads(np.void(hdf["/input_kwargs"])) else: data_dict["kwargs"] = {} + if "resource_dict" in hdf: + data_dict["resource_dict"] = cloudpickle.loads( + np.void(hdf["/resource_dict"]) + ) + else: + data_dict["resource_dict"] = {} if "error_log_file" in hdf: data_dict["error_log_file"] = cloudpickle.loads( np.void(hdf["/error_log_file"])