Skip to content

Commit 2fc971f

Browse files
committed
Rename: workflow_run_operation
1 parent 218fcd1 commit 2fc971f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

temporalio/nexus/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ async def fetch_info(
306306

307307

308308
# TODO(dan): support overriding op name
309-
def workflow_operation(
309+
def workflow_run_operation(
310310
start_method: Callable[
311311
[S, I, nexusrpc.handler.StartOperationOptions],
312312
Awaitable[StartWorkflowOperationResult[O]],

tests/worker/test_nexus.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def my_sync_operation(
158158
start_options_received_by_handler=options,
159159
)
160160

161-
@temporalio.nexus.handler.workflow_operation
161+
@temporalio.nexus.handler.workflow_run_operation
162162
async def my_async_operation(
163163
self, input: MyInput, options: nexusrpc.handler.StartOperationOptions
164164
) -> temporalio.nexus.handler.StartWorkflowOperationResult[MyOutput]:

0 commit comments

Comments
 (0)