Skip to content

Commit e64c15e

Browse files
committed
Make data converter lazy on update handle
1 parent 2a78e7e commit e64c15e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

temporalio/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5059,7 +5059,10 @@ def __init__(
50595059
self._workflow_run_id = workflow_run_id
50605060
self._result_type = result_type
50615061
self._known_outcome = known_outcome
5062-
self._data_converter = self._client.data_converter._with_context(
5062+
5063+
@functools.cached_property
5064+
def _data_converter(self) -> temporalio.converter.DataConverter:
5065+
return self._client.data_converter._with_context(
50635066
WorkflowSerializationContext(
50645067
namespace=self._client.namespace,
50655068
workflow_id=self.workflow_id,

0 commit comments

Comments
 (0)