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

未关闭
#787 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
api, backend, cli

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
Python
星标
59
派生
32
平均合并
1 天 5 小时
30 天内合并 PR
76

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/aws-durable-execution-sdk-python 的其他 Issue

查看 aws/aws-durable-execution-sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。