Skip to content

Commit

Permalink
Get rid of cruft before the code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Aug 7, 2024
1 parent 7b881a9 commit 2b77b3f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions docs/develop/python/message-passing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ tags:
- dynamic-handlers
---

This page shows how to do the following:

- [Develop with Queries](#handle-query)
- [Develop with Signals](#handle-signal)
- [Develop with Updates](#handle-update)
- [Dynamic Handler](#dynamic-handler)

See [Workflow message-passing](/encyclopedia/workflow-message-passing#sending-queries) for an introduction to using messages with Temporal Workflows and guidance on safe usage of async Signal and Update handlers.

## Writing Query, Signal, and Update handlers

Here is an example Workflow Definition featuring Query, Signal, and Update handlers, and an Update validator.
You can view this as a runnable sample at [hello/hello_message_passing.py](https://github.com/temporalio/samples-python/blob/dan/dan/docs_message_passing.py).

Expand Down Expand Up @@ -124,6 +113,7 @@ While multiple arguments are supported, it's recommended to use a single datacla

- The decorators can take arguments, for example to set the name to something other than the method name. See the API reference docs: [`@workflow.query`](https://python.temporal.io/temporalio.workflow.html#query), [`@workflow.signal`](https://python.temporal.io/temporalio.workflow.html#signal), [`workflow.update`](https://python.temporal.io/temporalio.workflow.html#update).

- See [Workflow message-passing](/encyclopedia/workflow-message-passing#sending-queries) for an introduction to using messages with Temporal Workflows and guidance on safe usage of async Signal and Update handlers.

### Query handlers {#handle-query}

Expand Down

0 comments on commit 2b77b3f

Please sign in to comment.