Skip to content

Commit 57eee56

Browse files
committed
Remove junk
1 parent aa3aa23 commit 57eee56

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

temporalio/nexus/_operation_handlers.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -104,27 +104,6 @@ async def fetch_result(
104104
raise NotImplementedError(
105105
"Temporal Nexus operation handlers do not support fetching the operation result."
106106
)
107-
# An implementation is provided for future reference:
108-
# TODO: honor `wait` param and Request-Timeout header
109-
# try:
110-
# nexus_handle = WorkflowHandle[OutputT].from_token(token)
111-
# except Exception as err:
112-
# raise HandlerError(
113-
# "Failed to decode operation token as workflow operation token. "
114-
# "Fetching result for non-workflow operations is not supported.",
115-
# type=HandlerErrorType.NOT_FOUND,
116-
# ) from err
117-
# ctx = _temporal_fetch_operation_context.get()
118-
# try:
119-
# client_handle = nexus_handle.to_workflow_handle(
120-
# ctx.client, result_type=self._output_type
121-
# )
122-
# except Exception as err:
123-
# raise HandlerError(
124-
# "Failed to construct workflow handle from workflow operation token",
125-
# type=HandlerErrorType.NOT_FOUND,
126-
# ) from err
127-
# return await client_handle.result()
128107

129108

130109
async def _cancel_workflow(

0 commit comments

Comments
 (0)