aws / aws/aws-durable-execution-sdk-python

[Testing] Implement WAIT operation cancellation (optional)

Open
#453 0 comments 0 reactions 0 assignees View on GitHub
pkg:testing
Dominant language
Python
Stars
53
Forks
25
Avg merge
1d 19h
Merged PRs (30d)
40

Description

Migration from https://github.com/aws/aws-durable-execution-sdk-python-testing/issues/51

---

## Context
Add WAIT operation cancellation support

## Technical Requirements
- Add WAIT operation cancellation support
- Implement timer cancellation when WAIT is cancelled
- Handle cancellation of already completed operations
- Add proper error handling for invalid cancellation requests
- Ensure execution continues properly after WAIT cancellation

## Implementation Details
- **File**: `src/aws_durable_execution_sdk_python_testing/checkpoint/processors/wait.py:75`

## Acceptance Criteria
- [ ] WAIT operation cancellation support added
- [ ] Timer cancellation implemented when WAIT is cancelled
- [ ] Cancellation of already completed operations handled
- [ ] Proper error handling added for invalid cancellation requests
- [ ] Execution continues properly after WAIT cancellation ensured

**Note**: This is marked as optional in the original document.

Contributor guide

Open the contributing guide

Research direction

Start with src/aws_durable_execution_sdk_python_testing/checkpoint/processors/wait.py around line 75 and trace how WAIT operations and timers are handled. Review the existing cancellation flow and identify how completed or invalid cancellation requests are represented. Done means the listed cancellation, error-handling, and post-cancellation execution criteria are covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.