Skip to content

Commit 82322c4

Browse files
committed
fix history for force checkpointing multiple wait
1 parent 0ec4f71 commit 82322c4

File tree

3 files changed

+84
-117
lines changed

3 files changed

+84
-117
lines changed

packages/aws-durable-execution-sdk-js-examples/src/examples/force-checkpointing/multiple-wait/force-checkpointing-multiple-wait.history.json

Lines changed: 61 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
{
33
"EventType": "ExecutionStarted",
44
"EventId": 1,
5-
"Id": "c289ed2d-2d17-44df-b7ab-945b7f689171",
6-
"EventTimestamp": "2025-12-03T22:58:13.749Z",
5+
"Id": "72062f81-7c16-49be-bdc9-091b6e2ee657",
6+
"EventTimestamp": "2025-12-03T23:29:48.234Z",
77
"ExecutionStartedDetails": {
88
"Input": {
99
"Payload": "{}"
@@ -15,7 +15,7 @@
1515
"SubType": "Parallel",
1616
"EventId": 2,
1717
"Id": "c4ca4238a0b92382",
18-
"EventTimestamp": "2025-12-03T22:58:13.750Z",
18+
"EventTimestamp": "2025-12-03T23:29:48.240Z",
1919
"ContextStartedDetails": {}
2020
},
2121
{
@@ -24,7 +24,7 @@
2424
"EventId": 3,
2525
"Id": "ea66c06c1e1c05fa",
2626
"Name": "parallel-branch-0",
27-
"EventTimestamp": "2025-12-03T22:58:13.750Z",
27+
"EventTimestamp": "2025-12-03T23:29:48.240Z",
2828
"ParentId": "c4ca4238a0b92382",
2929
"ContextStartedDetails": {}
3030
},
@@ -34,7 +34,7 @@
3434
"EventId": 4,
3535
"Id": "2f221a18eb863803",
3636
"Name": "long-running-step",
37-
"EventTimestamp": "2025-12-03T22:58:13.750Z",
37+
"EventTimestamp": "2025-12-03T23:29:48.240Z",
3838
"ParentId": "ea66c06c1e1c05fa",
3939
"StepStartedDetails": {}
4040
},
@@ -44,7 +44,7 @@
4444
"EventId": 5,
4545
"Id": "98c6f2c2287f4c73",
4646
"Name": "parallel-branch-1",
47-
"EventTimestamp": "2025-12-03T22:58:13.750Z",
47+
"EventTimestamp": "2025-12-03T23:29:48.240Z",
4848
"ParentId": "c4ca4238a0b92382",
4949
"ContextStartedDetails": {}
5050
},
@@ -54,11 +54,11 @@
5454
"EventId": 6,
5555
"Id": "6151f5ab282d90e4",
5656
"Name": "wait-1",
57-
"EventTimestamp": "2025-12-03T22:58:13.750Z",
57+
"EventTimestamp": "2025-12-03T23:29:48.243Z",
5858
"ParentId": "98c6f2c2287f4c73",
5959
"WaitStartedDetails": {
6060
"Duration": 1,
61-
"ScheduledEndTimestamp": "2025-12-03T22:58:14.750Z"
61+
"ScheduledEndTimestamp": "2025-12-03T23:29:49.243Z"
6262
}
6363
},
6464
{
@@ -67,7 +67,7 @@
6767
"EventId": 7,
6868
"Id": "6151f5ab282d90e4",
6969
"Name": "wait-1",
70-
"EventTimestamp": "2025-12-03T22:58:14.751Z",
70+
"EventTimestamp": "2025-12-03T23:29:49.242Z",
7171
"ParentId": "98c6f2c2287f4c73",
7272
"WaitSucceededDetails": {
7373
"Duration": 1
@@ -79,11 +79,11 @@
7979
"EventId": 8,
8080
"Id": "e61730e6717b1787",
8181
"Name": "wait-2",
82-
"EventTimestamp": "2025-12-03T22:58:14.752Z",
82+
"EventTimestamp": "2025-12-03T23:29:49.243Z",
8383
"ParentId": "98c6f2c2287f4c73",
8484
"WaitStartedDetails": {
8585
"Duration": 1,
86-
"ScheduledEndTimestamp": "2025-12-03T22:58:15.752Z"
86+
"ScheduledEndTimestamp": "2025-12-03T23:29:50.243Z"
8787
}
8888
},
8989
{
@@ -92,7 +92,7 @@
9292
"EventId": 9,
9393
"Id": "e61730e6717b1787",
9494
"Name": "wait-2",
95-
"EventTimestamp": "2025-12-03T22:58:15.754Z",
95+
"EventTimestamp": "2025-12-03T23:29:50.245Z",
9696
"ParentId": "98c6f2c2287f4c73",
9797
"WaitSucceededDetails": {
9898
"Duration": 1
@@ -104,11 +104,11 @@
104104
"EventId": 10,
105105
"Id": "453e406dcee4d181",
106106
"Name": "wait-3",
107-
"EventTimestamp": "2025-12-03T22:58:15.756Z",
107+
"EventTimestamp": "2025-12-03T23:29:50.245Z",
108108
"ParentId": "98c6f2c2287f4c73",
109109
"WaitStartedDetails": {
110110
"Duration": 1,
111-
"ScheduledEndTimestamp": "2025-12-03T22:58:16.756Z"
111+
"ScheduledEndTimestamp": "2025-12-03T23:29:51.245Z"
112112
}
113113
},
114114
{
@@ -117,7 +117,7 @@
117117
"EventId": 11,
118118
"Id": "453e406dcee4d181",
119119
"Name": "wait-3",
120-
"EventTimestamp": "2025-12-03T22:58:16.758Z",
120+
"EventTimestamp": "2025-12-03T23:29:51.247Z",
121121
"ParentId": "98c6f2c2287f4c73",
122122
"WaitSucceededDetails": {
123123
"Duration": 1
@@ -129,11 +129,11 @@
129129
"EventId": 12,
130130
"Id": "f69160b1cad6fbca",
131131
"Name": "wait-4",
132-
"EventTimestamp": "2025-12-03T22:58:16.759Z",
132+
"EventTimestamp": "2025-12-03T23:29:51.247Z",
133133
"ParentId": "98c6f2c2287f4c73",
134134
"WaitStartedDetails": {
135135
"Duration": 1,
136-
"ScheduledEndTimestamp": "2025-12-03T22:58:17.759Z"
136+
"ScheduledEndTimestamp": "2025-12-03T23:29:52.247Z"
137137
}
138138
},
139139
{
@@ -142,97 +142,86 @@
142142
"EventId": 13,
143143
"Id": "f69160b1cad6fbca",
144144
"Name": "wait-4",
145-
"EventTimestamp": "2025-12-03T22:58:17.761Z",
145+
"EventTimestamp": "2025-12-03T23:29:52.249Z",
146146
"ParentId": "98c6f2c2287f4c73",
147147
"WaitSucceededDetails": {
148148
"Duration": 1
149149
}
150150
},
151151
{
152-
"EventType": "StepSucceeded",
153-
"SubType": "Step",
152+
"EventType": "WaitStarted",
153+
"SubType": "Wait",
154154
"EventId": 14,
155-
"Id": "2f221a18eb863803",
156-
"Name": "long-running-step",
157-
"EventTimestamp": "2025-12-03T22:58:23.752Z",
158-
"ParentId": "ea66c06c1e1c05fa",
159-
"StepSucceededDetails": {
160-
"Result": {
161-
"Payload": "\"long-complete\""
162-
},
163-
"RetryDetails": {}
155+
"Id": "2cec0f1fa2a7fef6",
156+
"Name": "wait-5",
157+
"EventTimestamp": "2025-12-03T23:29:52.253Z",
158+
"ParentId": "98c6f2c2287f4c73",
159+
"WaitStartedDetails": {
160+
"Duration": 1,
161+
"ScheduledEndTimestamp": "2025-12-03T23:29:53.253Z"
164162
}
165163
},
166164
{
167-
"EventType": "WaitStarted",
165+
"EventType": "WaitSucceeded",
168166
"SubType": "Wait",
169167
"EventId": 15,
170168
"Id": "2cec0f1fa2a7fef6",
171169
"Name": "wait-5",
172-
"EventTimestamp": "2025-12-03T22:58:23.752Z",
170+
"EventTimestamp": "2025-12-03T23:29:53.254Z",
173171
"ParentId": "98c6f2c2287f4c73",
174-
"WaitStartedDetails": {
175-
"Duration": 1,
176-
"ScheduledEndTimestamp": "2025-12-03T22:58:24.752Z"
172+
"WaitSucceededDetails": {
173+
"Duration": 1
177174
}
178175
},
179176
{
180177
"EventType": "ContextSucceeded",
181178
"SubType": "ParallelBranch",
182179
"EventId": 16,
183-
"Id": "ea66c06c1e1c05fa",
184-
"Name": "parallel-branch-0",
185-
"EventTimestamp": "2025-12-03T22:58:23.752Z",
180+
"Id": "98c6f2c2287f4c73",
181+
"Name": "parallel-branch-1",
182+
"EventTimestamp": "2025-12-03T23:29:53.255Z",
186183
"ParentId": "c4ca4238a0b92382",
187184
"ContextSucceededDetails": {
188185
"Result": {
189-
"Payload": "\"long-complete\""
186+
"Payload": "\"waits-complete\""
190187
}
191188
}
192189
},
193190
{
194-
"EventType": "InvocationCompleted",
191+
"EventType": "StepSucceeded",
192+
"SubType": "Step",
195193
"EventId": 17,
196-
"EventTimestamp": "2025-12-03T22:58:23.804Z",
197-
"InvocationCompletedDetails": {
198-
"StartTimestamp": "2025-12-03T22:58:13.749Z",
199-
"EndTimestamp": "2025-12-03T22:58:23.804Z",
200-
"Error": {},
201-
"RequestId": "4602de42-0574-4a20-a907-d5112186f85b"
202-
}
203-
},
204-
{
205-
"EventType": "WaitSucceeded",
206-
"SubType": "Wait",
207-
"EventId": 18,
208-
"Id": "2cec0f1fa2a7fef6",
209-
"Name": "wait-5",
210-
"EventTimestamp": "2025-12-03T22:58:24.753Z",
211-
"ParentId": "98c6f2c2287f4c73",
212-
"WaitSucceededDetails": {
213-
"Duration": 1
194+
"Id": "2f221a18eb863803",
195+
"Name": "long-running-step",
196+
"EventTimestamp": "2025-12-03T23:29:58.243Z",
197+
"ParentId": "ea66c06c1e1c05fa",
198+
"StepSucceededDetails": {
199+
"Result": {
200+
"Payload": "\"long-complete\""
201+
},
202+
"RetryDetails": {}
214203
}
215204
},
216205
{
217206
"EventType": "ContextSucceeded",
218207
"SubType": "ParallelBranch",
219-
"EventId": 19,
220-
"Id": "98c6f2c2287f4c73",
221-
"Name": "parallel-branch-1",
222-
"EventTimestamp": "2025-12-03T22:58:24.756Z",
208+
"EventId": 18,
209+
"Id": "ea66c06c1e1c05fa",
210+
"Name": "parallel-branch-0",
211+
"EventTimestamp": "2025-12-03T23:29:58.245Z",
223212
"ParentId": "c4ca4238a0b92382",
224213
"ContextSucceededDetails": {
225214
"Result": {
226-
"Payload": "\"waits-complete\""
215+
"Payload": "\"long-complete\""
227216
}
228217
}
229218
},
230219
{
231220
"EventType": "ContextSucceeded",
232221
"SubType": "Parallel",
233-
"EventId": 20,
222+
"EventId": 19,
234223
"Id": "c4ca4238a0b92382",
235-
"EventTimestamp": "2025-12-03T22:58:24.756Z",
224+
"EventTimestamp": "2025-12-03T23:29:58.245Z",
236225
"ContextSucceededDetails": {
237226
"Result": {
238227
"Payload": "{\"all\":[{\"result\":\"long-complete\",\"index\":0,\"status\":\"SUCCEEDED\"},{\"result\":\"waits-complete\",\"index\":1,\"status\":\"SUCCEEDED\"}],\"completionReason\":\"ALL_COMPLETED\"}"
@@ -241,20 +230,20 @@
241230
},
242231
{
243232
"EventType": "InvocationCompleted",
244-
"EventId": 21,
245-
"EventTimestamp": "2025-12-03T22:58:24.757Z",
233+
"EventId": 20,
234+
"EventTimestamp": "2025-12-03T23:29:58.245Z",
246235
"InvocationCompletedDetails": {
247-
"StartTimestamp": "2025-12-03T22:58:24.753Z",
248-
"EndTimestamp": "2025-12-03T22:58:24.757Z",
236+
"StartTimestamp": "2025-12-03T23:29:48.234Z",
237+
"EndTimestamp": "2025-12-03T23:29:58.245Z",
249238
"Error": {},
250-
"RequestId": "3d060120-b71b-487c-ba89-03a06b9c4568"
239+
"RequestId": "66e6556a-ffca-4b02-abb8-0042c5cff487"
251240
}
252241
},
253242
{
254243
"EventType": "ExecutionSucceeded",
255-
"EventId": 22,
256-
"Id": "c289ed2d-2d17-44df-b7ab-945b7f689171",
257-
"EventTimestamp": "2025-12-03T22:58:24.757Z",
244+
"EventId": 21,
245+
"Id": "72062f81-7c16-49be-bdc9-091b6e2ee657",
246+
"EventTimestamp": "2025-12-03T23:29:58.246Z",
258247
"ExecutionSucceededDetails": {
259248
"Result": {
260249
"Payload": "\"{\\\"all\\\":[{\\\"result\\\":\\\"long-complete\\\",\\\"index\\\":0,\\\"status\\\":\\\"SUCCEEDED\\\"},{\\\"result\\\":\\\"waits-complete\\\",\\\"index\\\":1,\\\"status\\\":\\\"SUCCEEDED\\\"}],\\\"completionReason\\\":\\\"ALL_COMPLETED\\\"}\""

0 commit comments

Comments
 (0)