@@ -35,21 +35,21 @@ easy-to-use Docker container.
3535
36362 . Pull the Docker Image for the Emulator:
3737
38- ``` bash
39- docker pull mcr.microsoft.com/dts/dts-emulator:v0.0.6
40- ```
38+ ``` bash
39+ docker pull mcr.microsoft.com/dts/dts-emulator:v0.0.6
40+ ```
4141
42- 1 . Run the Emulator: Wait a few seconds for the container to be ready.
42+ 3 . Run the Emulator: Wait a few seconds for the container to be ready.
4343
44- ``` bash
45- docker run --name dtsemulator -d -p 8080:8080 mcr.microsoft.com/dts/dts-emulator:v0.0.6
46- ```
44+ ` ` ` bash
45+ docker run --name dtsemulator -d -p 8080:8080 mcr.microsoft.com/dts/dts-emulator:v0.0.6
46+ ` ` `
4747
48- 1 . Install the Required Packages:
48+ 4 . Install the Required Packages:
4949
50- ``` bash
51- pip install -r requirements.txt
52- ```
50+ ` ` ` bash
51+ pip install -r requirements.txt
52+ ` ` `
5353
5454Note: The example code has been updated to use the default emulator settings automatically
5555(endpoint: [http://localhost:8080](http://localhost:8080), taskhub: default). You don' t need to set
@@ -62,43 +62,43 @@ Azure CLI:
6262
63631. Create a Scheduler:
6464
65- ``` bash
66- az durabletask scheduler create --resource-group < testrg> \
67- --name < testscheduler> \
68- --location < eastus> --ip-allowlist " [0.0.0.0/0]" --sku-capacity 1 \
69- --sku-name " Dedicated" --tags " {'myattribute':'myvalue'}"
70- ```
65+ ` ` ` bash
66+ az durabletask scheduler create --resource-group < testrg> \
67+ --name < testscheduler> \
68+ --location < eastus> --ip-allowlist " [0.0.0.0/0]" --sku-capacity 1 \
69+ --sku-name " Dedicated" --tags " {'myattribute':'myvalue'}"
70+ ` ` `
7171
72- 1 . Create Your Taskhub:
72+ 2 . Create Your Taskhub:
7373
74- ``` bash
75- az durabletask taskhub create --resource-group < testrg> \
76- --scheduler-name < testscheduler> --name < testtaskhub>
77- ```
74+ ` ` ` bash
75+ az durabletask taskhub create --resource-group < testrg> \
76+ --scheduler-name < testscheduler> --name < testtaskhub>
77+ ` ` `
7878
79- 1 . Retrieve the Endpoint for the Scheduler: Locate the taskhub in the Azure portal to find the
79+ 3 . Retrieve the Endpoint for the Scheduler: Locate the taskhub in the Azure portal to find the
8080 endpoint.
8181
82- 2 . Set the Environment Variables:
83- Bash:
82+ 4 . Set the Environment Variables:
83+ Bash:
8484
85- ``` bash
86- export TASKHUB=< taskhubname>
87- export ENDPOINT=< taskhubEndpoint>
88- ```
85+ ` ` ` bash
86+ export TASKHUB=< taskhubname>
87+ export ENDPOINT=< taskhubEndpoint>
88+ ` ` `
8989
90- Powershell :
90+ PowerShell :
9191
92- ``` powershell
93- $env:TASKHUB = "<taskhubname>"
94- $env:ENDPOINT = "<taskhubEndpoint>"
95- ```
92+ ` ` ` powershell
93+ $env :TASKHUB = " <taskhubname>"
94+ $env :ENDPOINT = " <taskhubEndpoint>"
95+ ` ` `
9696
97- 1 . Install the Required Packages:
97+ 5 . Install the Required Packages:
9898
99- ``` bash
100- pip install -r requirements.txt
101- ```
99+ ` ` ` bash
100+ pip install -r requirements.txt
101+ ` ` `
102102
103103# ## Running the Python Components
104104
@@ -123,7 +123,7 @@ You should start seeing logs for processing orders in both shell outputs.
123123
124124To access the Durable Task Scheduler Dashboard, follow these steps:
125125
126- - ** Using the Emulator** : By default, the dashboard runs on portal 8082.
126+ - ** Using the Emulator** : By default, the dashboard runs on port 8082.
127127 Navigate to [http://localhost:8082](http://localhost:8082) and click on the default task hub.
128128
129129- ** Using a Deployed Scheduler** : Navigate to the Scheduler resource. Then, go to the Task Hub
0 commit comments