@@ -510,7 +510,7 @@ class GreetingWorkflow:
510
510
start_to_close_timeout = timedelta(seconds = 5 ),
511
511
)
512
512
workflow.logger.debug(" Greeting set to %s " , self ._current_greeting)
513
-
513
+
514
514
# Wait for salutation update or complete signal (this can be
515
515
# cancelled)
516
516
await asyncio.wait(
@@ -536,7 +536,7 @@ class GreetingWorkflow:
536
536
@workflow.query
537
537
def current_greeting (self ) -> str :
538
538
return self ._current_greeting
539
-
539
+
540
540
@workflow.update
541
541
def set_and_get_greeting (self , greeting : str ) -> str :
542
542
old = self ._current_greeting
@@ -622,7 +622,7 @@ Here are the decorators that can be applied:
622
622
* May mutate workflow state, and make calls to other workflow APIs like starting activities, etc.
623
623
* Also accepts the ` name ` and ` dynamic ` parameters like signal, with the same semantics.
624
624
* 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
626
626
be ` async ` , cannot mutate workflow state, and return nothing.
627
627
* See [ Signal and update handlers] ( #signal-and-update-handlers ) below
628
628
* ` @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
994
994
it. This will run the entire workflow outside of the workflow which means it can share global state and other bad
995
995
things.
996
996
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
998
998
` temporalio.worker.UnsandboxedWorkflowRunner() ` . This value is defaulted to
999
999
` temporalio.worker.workflow_sandbox.SandboxedWorkflowRunner() ` so by changing it to the unsandboxed runner, the sandbox
1000
1000
will not be used at all.
0 commit comments