[Feature]: Add pause/resume to the local runner HTTP API and CLI

Đang mở
#787 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend, cli

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ả

parity pkg:testing
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/aws-durable-execution-sdk-python

Tất cả issue của aws/aws-durable-execution-sdk-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.