Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update references/python/python.md
  • Loading branch information
brianstrauch authored Mar 31, 2026
commit 0f3d801d55b3397c2c77e5796af4095ed21c947f
2 changes: 1 addition & 1 deletion references/python/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ if __name__ == "__main__":

### Workflow Definition
- Use `@workflow.defn` decorator on class
- Use `@workflow.init` on `__init__` to receive workflow input and initialize state before `@workflow.run` or any signal/update handler is invoked
- Put any state initialization logic in the `__init__` of your workflow class to guarantee that it happens before signals/updates arrive. If your state initialization logic requires the workflow parameters, then add the `@workflow.init` decorator and parameters to your `__init__`.
- Use `@workflow.run` on the entry point method
- Must be async (`async def`)
- Use `@workflow.signal`, `@workflow.query`, `@workflow.update` for handlers
Expand Down