Skip to content

Commit 721f7d3

Browse files
committed
Cleanup
1 parent 135fecb commit 721f7d3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

temporalio/worker/_workflow_instance.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,6 @@ def _apply_resolve_child_workflow_execution(
833833
ret: Optional[Any] = None
834834
if job.result.completed.HasField("result"):
835835
ret_types = [handle._input.ret_type] if handle._input.ret_type else None
836-
# TODO: should the workflow ID in serialization context be that of the parent or the child workflow?
837836
context = temporalio.converter.WorkflowSerializationContext(
838837
namespace=self._info.namespace,
839838
workflow_id=handle._input.id,
@@ -846,14 +845,12 @@ def _apply_resolve_child_workflow_execution(
846845
ret = ret_vals[0]
847846
handle._resolve_success(ret)
848847
elif job.result.HasField("failed"):
849-
# TODO: should the workflow ID in serialization context be that of the parent or the child workflow?
850848
handle._resolve_failure(
851849
self._failure_converter.from_failure(
852850
job.result.failed.failure, self._payload_converter
853851
)
854852
)
855853
elif job.result.HasField("cancelled"):
856-
# TODO: should the workflow ID in serialization context be that of the parent or the child workflow?
857854
handle._resolve_failure(
858855
self._failure_converter.from_failure(
859856
job.result.cancelled.failure, self._payload_converter
@@ -891,7 +888,6 @@ def _apply_resolve_child_workflow_execution_start(
891888
RuntimeError(f"Unknown child start fail cause: {job.failed.cause}")
892889
)
893890
elif job.HasField("cancelled"):
894-
# TODO: should the workflow ID in serialization context be that of the parent or the child workflow?
895891
self._pending_child_workflows.pop(job.seq)
896892
handle._resolve_failure(
897893
self._failure_converter.from_failure(

0 commit comments

Comments
 (0)