Commit 71962f1
committed
fix(testing): race-safe worker submit and shutdown
- Add ExecutionRegistry.submit with compare-and-evict retry so a
worker that stops its lane between hand-out and submit no longer
surfaces RuntimeError; reorder teardown to stop-then-remove.
- Add ExecutionRegistry.shutdown; WebRunner.stop and
DurableFunctionTestRunner.close now stop per-execution lanes so
they do not outlive the runner.
- Honor MaxItems in GetDurableExecutionState, clamped to the service
page-count bounds, via the paginator's new count bound.
- Remove dead _release_gate and _cleanup_execution_state; fix
logger.exception misuse on non-error paths; fix the
wait_for_callback timeout message.1 parent 291a1db commit 71962f1
10 files changed
Lines changed: 302 additions & 185 deletions
File tree
- packages/aws-durable-execution-sdk-python-testing
- src/aws_durable_execution_sdk_python_testing
- worker
- tests
- worker
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | | - | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| 640 | + | |
640 | 641 | | |
641 | 642 | | |
642 | | - | |
643 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
644 | 646 | | |
645 | | - | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
646 | 650 | | |
647 | 651 | | |
648 | 652 | | |
| |||
675 | 679 | | |
676 | 680 | | |
677 | 681 | | |
| 682 | + | |
678 | 683 | | |
679 | 684 | | |
680 | 685 | | |
681 | 686 | | |
682 | 687 | | |
683 | 688 | | |
684 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
685 | 692 | | |
686 | 693 | | |
687 | 694 | | |
| |||
0 commit comments