Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ Errors:

- `400` invalid body/params or `invalid_payload`
- `404` `session_not_found`
- `503` `session_unavailable` while the session's bound worker is offline or reconciling after restart; retry the same `session_id` without rerouting it.
- `409` `session_busy` or canceled
- `session_busy` means the request exceeded the per-session concurrency limit. Workers default to one command per session; the worker must raise `WORKER_TERMINAL_SESSION_MAX_INFLIGHT` to allow concurrent commands on one `session_id`.
- `terminalExec` and `terminalResource` share that per-session limit.
Expand Down
1 change: 1 addition & 0 deletions README/API.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ Worker 类型:

- `400` 请求参数非法或 `invalid_payload`
- `404` `session_not_found`
- `503` `session_unavailable`:session 绑定的 Worker 离线或重启后正在核对资源;客户端应使用同一 `session_id` 重试,Console 不会将其改派。
- `409` `session_busy` 或任务被取消
- `session_busy` 表示请求超出了单 session 的并发上限。worker 默认每个 session 只允许一条命令,需由 worker 调大 `WORKER_TERMINAL_SESSION_MAX_INFLIGHT` 才能在同一 `session_id` 上并发执行。
- `terminalExec` 与 `terminalResource` 共用该单 session 上限。
Expand Down
Loading