Commit d308c3b
Add cross-cutting types and align design doc with reference SDKs
Lays down shared types/constants for the upcoming durable-execution
context operations (Callbacks, Invoke, Parallel, Map, WaitForCondition)
and updates the design doc to match decisions reached after comparing
against the Python, JS, and Java reference SDKs.
SDK changes:
- OperationSubTypes constants class (Step, Wait, Callback, WaitForCallback,
Invoke, WaitForCondition, Parallel, ParallelBranch, Map, MapIteration).
Replaces hard-coded SubType literals in StepOperation and WaitOperation.
- OperationStatuses.TimedOut for callback/invoke timeout handling.
Design-doc alignment:
- Drop Serializer field from CallbackConfig, InvokeConfig,
ChildContextConfig. Custom serializers flow through AOT-safe
ICheckpointSerializer<T> overloads (matches the existing StepConfig
pattern documented at line 1247).
- InvokeConfig gains TenantId (matches Python/JS/Java); drops
PayloadSerializer / ResultSerializer.
- BatchItemStatus.Cancelled -> Started. The SDK does not synchronously
cancel branches; the wire state of items still in flight when the
batch resolves (e.g., FirstSuccessful short-circuit) is STARTED.
Matches Python and JS.
- IBatchResult<T> expanded to the full JS/Python surface: adds Started,
GetErrors(), HasFailure, SuccessCount, FailureCount, StartedCount,
TotalCount.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 369a029 commit d308c3b
4 files changed
Lines changed: 87 additions & 26 deletions
File tree
- Docs
- Libraries/src/Amazon.Lambda.DurableExecution/Internal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
1286 | 1285 | | |
1287 | 1286 | | |
1288 | 1287 | | |
| |||
1307 | 1306 | | |
1308 | 1307 | | |
1309 | 1308 | | |
1310 | | - | |
| 1309 | + | |
| 1310 | + | |
1311 | 1311 | | |
1312 | | - | |
| 1312 | + | |
1313 | 1313 | | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1318 | 1317 | | |
1319 | 1318 | | |
1320 | 1319 | | |
| |||
1429 | 1428 | | |
1430 | 1429 | | |
1431 | 1430 | | |
1432 | | - | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
1436 | 1434 | | |
1437 | 1435 | | |
1438 | 1436 | | |
| |||
1473 | 1471 | | |
1474 | 1472 | | |
1475 | 1473 | | |
1476 | | - | |
| 1474 | + | |
1477 | 1475 | | |
1478 | 1476 | | |
1479 | 1477 | | |
1480 | 1478 | | |
1481 | | - | |
| 1479 | + | |
1482 | 1480 | | |
1483 | 1481 | | |
1484 | 1482 | | |
1485 | 1483 | | |
1486 | | - | |
| 1484 | + | |
1487 | 1485 | | |
1488 | 1486 | | |
1489 | 1487 | | |
1490 | 1488 | | |
1491 | | - | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
1492 | 1495 | | |
1493 | 1496 | | |
1494 | 1497 | | |
1495 | 1498 | | |
1496 | | - | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
1497 | 1505 | | |
1498 | 1506 | | |
1499 | 1507 | | |
1500 | 1508 | | |
1501 | | - | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
1502 | 1515 | | |
1503 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1504 | 1522 | | |
1505 | 1523 | | |
1506 | 1524 | | |
| |||
1511 | 1529 | | |
1512 | 1530 | | |
1513 | 1531 | | |
1514 | | - | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
1515 | 1555 | | |
1516 | 1556 | | |
1517 | 1557 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
140 | 161 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments