diff --git a/pyiron_base/project/decorator.py b/pyiron_base/project/decorator.py index de3c39731..78d0d557f 100644 --- a/pyiron_base/project/decorator.py +++ b/pyiron_base/project/decorator.py @@ -94,6 +94,7 @@ def get_delayed_object( list_length=list_length, **kwargs, ) + delayed_job_object._python_function = python_function delayed_job_object._server = Server(**pyiron_resource_dict) return delayed_job_object diff --git a/pyiron_base/project/delayed.py b/pyiron_base/project/delayed.py index 59ef398fe..39fb0ff7b 100644 --- a/pyiron_base/project/delayed.py +++ b/pyiron_base/project/delayed.py @@ -241,6 +241,7 @@ def __init__( pass self.__name__ = "DelayedObject" self._result = None + self._python_function = None self._server = Server() self._output_key = output_key self._output_file = output_file @@ -294,6 +295,7 @@ def __copy__(self): list_length=self._list_length, list_index=self._list_index, ) + obj_copy._python_function = self._python_function obj_copy._input = self._input obj_copy._result = self._result obj_copy._server.from_dict(self._server.to_dict())