You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# NOTE: remember to check/update pyproject.toml protobuf version to follow https://github.com/grpc/grpc/blob/v{{VERSION GRPC IO TOOL BELLOW}}/tools/distrib/python/grpcio_tools/setup.py
Copy file name to clipboardExpand all lines: README.md
+6-96Lines changed: 6 additions & 96 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,6 @@
6
6
7
7
This repo contains a Python client SDK for use with the [Durable Task Framework for Go](https://github.com/microsoft/durabletask-go) and [Dapr Workflow](https://docs.dapr.io/developing-applications/building-blocks/workflow/workflow-overview/). With this SDK, you can define, schedule, and manage durable orchestrations using ordinary Python code.
8
8
9
-
> **🚀 Enhanced Async Features**: This fork includes comprehensive async workflow enhancements with advanced error handling, non-determinism detection, timeout support, and debugging tools. See [ASYNC_ENHANCEMENTS.md](./ASYNC_ENHANCEMENTS.md) for details.
10
-
11
-
## Quick Start - Async Workflows
12
-
13
-
For async workflow development, use the new `durabletask.aio` package:
result =await ctx.call_activity(say_hello, input=name)
21
-
await ctx.sleep(1.0)
22
-
returnf"Workflow completed: {result}"
23
-
24
-
defsay_hello(ctx, name: str) -> str:
25
-
returnf"Hello, {name}!"
26
-
27
-
# Register and run
28
-
with TaskHubGrpcWorker() as worker:
29
-
worker.add_activity(say_hello)
30
-
worker.add_orchestrator(my_workflow)
31
-
worker.start()
32
-
# ... schedule workflows with client
33
-
```
34
-
35
9
⚠️ **This SDK is currently under active development and is not yet ready for production use.** ⚠️
36
10
37
11
> Note that this project is **not** currently affiliated with the [Durable Functions](https://docs.microsoft.com/azure/azure-functions/durable/durable-functions-overview) project for Azure Functions. If you are looking for a Python SDK for Durable Functions, please see [this repo](https://github.com/Azure/azure-functions-durable-python).
@@ -181,13 +155,6 @@ python3 -m pip install .
181
155
182
156
See the [examples](./examples) directory for a list of sample orchestrations and instructions on how to run them.
183
157
184
-
**Enhanced Async Examples:**
185
-
-`async_activity_sequence.py` - Updated to use new `durabletask.aio` package
186
-
-`async_fanout_fanin.py` - Updated to use new `durabletask.aio` package
187
-
-`async_enhanced_features.py` - Comprehensive demo of all enhanced features
- See [ASYNC_ENHANCEMENTS.md](./durabletask/aio/ASYNCIO_ENHANCEMENTS.md) for detailed examples and usage patterns
190
-
191
158
## Development
192
159
193
160
The following is more information about how to develop this project. Note that development commands require that `make` is installed on your local machine. If you're using Windows, you can install `make` using [Chocolatey](https://chocolatey.org/) or use WSL.
@@ -205,7 +172,7 @@ This will download the `orchestrator_service.proto` from the `microsoft/durablet
205
172
206
173
### Running unit tests
207
174
208
-
Unit tests can be run using the following command from the project root.
175
+
Unit tests can be run using the following command from the project root.
209
176
Unit tests _don't_ require a sidecar process to be running.
210
177
211
178
To run on a specific python version (eg: 3.11), run the following command from the project root:
@@ -216,7 +183,7 @@ tox -e py311
216
183
217
184
### Running E2E tests
218
185
219
-
The E2E (end-to-end) tests require a sidecar process to be running.
186
+
The E2E (end-to-end) tests require a sidecar process to be running.
220
187
221
188
For non-multi app activities test you can use the Durable Task test sidecar using the following command:
0 commit comments