Skip to content

Commit 8ea7e5f

Browse files
committed
TODOs
1 parent 5c25b0b commit 8ea7e5f

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

temporalio/converter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,9 +1054,7 @@ def from_failure(
10541054
# temporal.api.enums.v1.NexusHandlerErrorRetryBehavior retry_behavior = 2;
10551055
# }
10561056
# TODO(dan): core never sends this currently?
1057-
raise NotImplementedError(
1058-
"TODO: Nexus handler failure info not implemented"
1059-
)
1057+
raise NotImplementedError("Nexus handler failure info not implemented")
10601058
elif failure.HasField("nexus_operation_execution_failure_info"):
10611059
# message NexusOperationFailureInfo {
10621060
# // The NexusOperationScheduled event ID.

temporalio/nexus/handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,14 @@ def __init__(
307307
):
308308
self.service = service
309309

310-
# TODO: get rid of first parameter?
310+
# TODO(dan): get rid of first parameter?
311311
@wraps(start_method)
312312
async def start(
313313
self, input: I, options: nexusrpc.handler.StartOperationOptions
314314
) -> StartWorkflowOperationResult[O]:
315315
return await start_method(service, input, options)
316316

317-
# TODO: get rid of first parameter?
317+
# TODO(dan): get rid of first parameter?
318318
async def fetch_result(
319319
self, token: str, options: nexusrpc.handler.FetchOperationResultOptions
320320
) -> O:

temporalio/worker/_nexus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async def run(self) -> None:
126126
assert op, f"Failed to classify Nexus task: {task_python}"
127127
print(f"🟢 _NexusWorker received '{op}' operation")
128128

129-
# TODO: Correct way to examine and classify task proto
129+
# TODO(dan): Correct way to examine and classify task proto
130130
if task.HasField("task"):
131131
if task.task.request.HasField("start_operation"):
132132
await self._handle_start_operation(

tests/worker/test_nexus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class ServiceClassNameOutput:
642642
name: str
643643

644644

645-
# TODO: test interface op types not matching
645+
# TODO(dan): test interface op types not matching
646646

647647

648648
@nexusrpc.interface.service

0 commit comments

Comments
 (0)