@@ -510,7 +510,7 @@ class GreetingWorkflow:
510510 start_to_close_timeout = timedelta(seconds = 5 ),
511511 )
512512 workflow.logger.debug(" Greeting set to %s " , self ._current_greeting)
513-
513+
514514 # Wait for salutation update or complete signal (this can be
515515 # cancelled)
516516 await asyncio.wait(
@@ -536,7 +536,7 @@ class GreetingWorkflow:
536536 @workflow.query
537537 def current_greeting (self ) -> str :
538538 return self ._current_greeting
539-
539+
540540 @workflow.update
541541 def set_and_get_greeting (self , greeting : str ) -> str :
542542 old = self ._current_greeting
@@ -622,7 +622,7 @@ Here are the decorators that can be applied:
622622 * May mutate workflow state, and make calls to other workflow APIs like starting activities, etc.
623623 * Also accepts the ` name ` and ` dynamic ` parameters like signal, with the same semantics.
624624 * Update handlers may optionally define a validator method by decorating it with ` @update_handler_method.validator ` .
625- To reject an update before any events are written to history, throw an exception in a validator. Validators cannot
625+ To reject an update before any events are written to history, throw an exception in a validator. Validators cannot
626626 be ` async ` , cannot mutate workflow state, and return nothing.
627627 * See [ Signal and update handlers] ( #signal-and-update-handlers ) below
628628* ` @workflow.query ` - Defines a method as a query
@@ -994,7 +994,7 @@ To run an entire workflow outside of a sandbox, set `sandboxed=False` on the `@w
994994it. This will run the entire workflow outside of the workflow which means it can share global state and other bad
995995things.
996996
997- To disable the sandbox entirely for a worker, set the ` Worker ` init's ` workflow_runner ` keyword argument to
997+ To disable the sandbox entirely for a worker, set the ` Worker ` init's ` workflow_runner ` keyword argument to
998998` temporalio.worker.UnsandboxedWorkflowRunner() ` . This value is defaulted to
999999` temporalio.worker.workflow_sandbox.SandboxedWorkflowRunner() ` so by changing it to the unsandboxed runner, the sandbox
10001000will not be used at all.
0 commit comments