Commit 3338948
committed
feat: add WaitForCallbackContext to submitter
BREAKING CHANGE: wait_for_callback submitter signature changed from
submitter(callback_id: str) to submitter(callback_id: str, context:
WaitForCallbackContext)
The WaitForCallbackContext provides access to a logger, enabling
submitter functions to log operations consistently with other SDK
operations like step and wait_for_condition.
This change aligns the wait_for_callback API with other context-aware
operations in the SDK, improving consistency and extensibility.
- Add WaitForCallbackContext type with logger field
- Update wait_for_callback_handler to pass context to submitter
- Update all callback tests to use new submitter signature
- Add test coverage for context parameter validation1 parent 4e28a5e commit 3338948
File tree
4 files changed
+43
-11
lines changed- src/aws_durable_execution_sdk_python
- operation
- tests/operation
4 files changed
+43
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
489 | 490 | | |
490 | 491 | | |
491 | 492 | | |
492 | | - | |
| 493 | + | |
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
| |||
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | | - | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
101 | | - | |
102 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
312 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
313 | 318 | | |
314 | 319 | | |
315 | 320 | | |
| |||
350 | 355 | | |
351 | 356 | | |
352 | 357 | | |
| 358 | + | |
353 | 359 | | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
360 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
361 | 371 | | |
362 | 372 | | |
363 | 373 | | |
| |||
371 | 381 | | |
372 | 382 | | |
373 | 383 | | |
| 384 | + | |
374 | 385 | | |
375 | 386 | | |
376 | 387 | | |
377 | 388 | | |
378 | 389 | | |
379 | 390 | | |
380 | 391 | | |
381 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
382 | 397 | | |
383 | 398 | | |
384 | 399 | | |
| |||
585 | 600 | | |
586 | 601 | | |
587 | 602 | | |
588 | | - | |
| 603 | + | |
589 | 604 | | |
590 | 605 | | |
591 | 606 | | |
592 | 607 | | |
593 | 608 | | |
| 609 | + | |
594 | 610 | | |
595 | 611 | | |
596 | 612 | | |
| |||
775 | 791 | | |
776 | 792 | | |
777 | 793 | | |
778 | | - | |
| 794 | + | |
779 | 795 | | |
| 796 | + | |
780 | 797 | | |
781 | 798 | | |
782 | 799 | | |
783 | 800 | | |
| 801 | + | |
784 | 802 | | |
785 | 803 | | |
786 | 804 | | |
| |||
889 | 907 | | |
890 | 908 | | |
891 | 909 | | |
892 | | - | |
| 910 | + | |
893 | 911 | | |
894 | 912 | | |
895 | 913 | | |
| |||
901 | 919 | | |
902 | 920 | | |
903 | 921 | | |
| 922 | + | |
904 | 923 | | |
905 | 924 | | |
906 | 925 | | |
| |||
0 commit comments