Skip to content

Commit 6df1064

Browse files
committed
Reverting dapr readme
Signed-off-by: Ryan Lettieri <[email protected]>
1 parent 136a3d0 commit 6df1064

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

examples/README.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,15 @@
11
# Examples
22

3-
This directory contains examples of how to author durable orchestrations using the Durable Task Python SDK. There are two backends that are compatible with the Durable Task Python SDK: The Dapr sidecar, and the Durable Task Scheduler (DTS).
3+
This directory contains examples of how to author durable orchestrations using the Durable Task Python SDK.
44

5-
## Prerequisites for using Dapr
5+
## Prerequisites
66

77
All the examples assume that you have a Durable Task-compatible sidecar running locally. There are two options for this:
88

99
1. Install the latest version of the [Dapr CLI](https://docs.dapr.io/getting-started/install-dapr-cli/), which contains and exposes an embedded version of the Durable Task engine. The setup process (which requires Docker) will configure the workflow engine to store state in a local Redis container.
1010

1111
2. Clone and run the [Durable Task Sidecar](https://github.com/microsoft/durabletask-go) project locally (requires Go 1.18 or higher). Orchestration state will be stored in a local sqlite database.
1212

13-
14-
## Prerequisites for using DTS
15-
16-
All the examples assume that you have a Durable Task Scheduler taskhub created.
17-
18-
The simplest way to create a taskhub is by using the az cli commands:
19-
20-
1. Create a scheduler:
21-
az durabletask scheduler create --resource-group <testrg> --name <testscheduler> --location <eastus> --ip-allowlist "[0.0.0.0/0]" --sku-capacity 1, --sku-name "Dedicated" --tags "{}"
22-
23-
2. Create your taskhub
24-
az durabletask taskhub create --resource-group <testrg> --scheduler-name <testscheduler> --name <testtaskhub>
25-
26-
3. Retrieve the endpoint for the taskhub. This can be done by locating the taskhub in the portal.
27-
28-
4. Set the appropriate environment variables for the TASKHUB and ENDPOINT
29-
30-
```sh
31-
export TASKHUB=<taskhubname>
32-
```
33-
34-
```sh
35-
export ENDPOINT=<taskhubEndpoint>
36-
```
37-
3813
## Running the examples
3914

4015
With one of the sidecars running, you can simply execute any of the examples in this directory using `python3`:

0 commit comments

Comments
 (0)