[Feature]: Add pause/resume to the local runner HTTP API and CLI
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by reading the web runner and HTTP route implementations, the dex-local-runner CLI entry points, and the pause/resume behavior introduced by #757. Define the HTTP and CLI contracts, including bounded waits and error handling, then add unit tests for routes and CLI arguments and E2E coverage for pause and resume. Done means an in-flight local execution can be paused and resumed through both interfaces, with documented behavior for timeouts and invalid or completed executions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What would you like?
Expose execution pause and resume through the local emulator's HTTP API and the dex-local-runner CLI.
This follows the request in the approval of PR #757. It is separate work, not a merge requirement for that PR.
The reviewer notes that SAM CLI runs the emulator as a container and calls its HTTP routes. Adding these routes would let SAM CLI add pause/resume commands in a separate change.
Possible Implementation
- Add pause/resume support to the web runner and its HTTP routes.
- Add CLI commands that call those routes for a specified execution ARN.
- Reuse the pause/resume behavior introduced by #757.
- Define request and response formats, timeout behavior, and error mapping.
- Document HTTP and CLI usage, including the experimental status of these controls.
Acceptance criteria
- Users can pause and resume a local execution through HTTP and through the CLI.
- Pause waits are bounded. A timeout clearly reports that the pause request remains applied.
- Repeated requests, completed executions, invalid ARNs, and unknown executions have documented behavior consistent with the underlying runner.
- Unit tests cover routes, CLI argument handling, and error responses.
- E2E tests cover pausing an in-flight execution and resuming it to completion through the HTTP API and CLI.
Is this a breaking change?
No. This adds local testing controls.
Does this require an RFC?
No RFC is proposed. Confirm the HTTP and CLI contracts during implementation.
Additional Context
- Follow-up to #757.
- SAM CLI changes belong in a separate follow-up. This issue provides the emulator support they would need.
- Ngôn ngữ chính
- Python
- Star
- 59
- Fork
- 32
- Merge trung bình
- 1 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws/aws-durable-execution-sdk-python
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws/aws-durable-execution-sdk-python#977 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[AgentCore session] Remove the unused session timeoutCó thể đã có người làm @srivilliamsai đã nhận hôm nay. Đang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
aws/aws-durable-execution-sdk-python#970 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws/aws-durable-execution-sdk-python#952 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[AgentCore session] W4: Document sessions in the worker READMECó thể đã có người làm @ParidelPooya đã nhận 3 ngày trước. Đang mởenhancement needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
aws/aws-durable-execution-sdk-python#950 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[AgentCore session] W3: Add the session ID and job count to worker logsCó thể đã có người làm @ParidelPooya đã nhận 3 ngày trước. Đang mởenhancement needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
aws/aws-durable-execution-sdk-python#949 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws/aws-durable-execution-sdk-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Unused loot bag group names left in dreamcraft en_US.langCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởStatus: Triage Suggestion
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
GTNewHorizons/GT-New-Horizons-Modpack#27789 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend sev-5
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
core good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
b4b code health next
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ESCOMP/CTSM#4330 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày