-
Notifications
You must be signed in to change notification settings - Fork 13
/
TerminateInstance.http
39 lines (23 loc) · 1018 Bytes
/
TerminateInstance.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## First start the never ending ochestration
# @name neverending
POST http://localhost:7071/api/start/NeverEndingOrchestration
Content-Type: application/json
### Get the status of this orchestration
@instanceId = {{neverending.response.body.$.id}}
@taskHub = DurableDemo
GET http://localhost:7071/runtime/webhooks/durabletask/instances/{{instanceId}}
?taskHub={{taskHub}}
### Terminate the running instance using the custom httptrigger in the solution.
@instanceId = {{neverending.response.body.$.id}}
@reason = "This orchestration is stuck in an endless loop."
POST http://localhost:7071/api/terminate/{{instanceId}}
Content-Type: application/json
{{reason}}
### Terminate the running instance using the default Durable Functions HTTP API.
@instanceId = {{neverending.response.body.$.id}}
@taskHub = DurableDemo
@systemKey = 0
POST http://localhost:7071/runtime/webhooks/durabletask/instances/{{instanceId}}/terminate
?taskHub={{taskHub}}
&code={{systemKey}}
&reason={{reason}}