> ## Documentation Index
> Fetch the complete documentation index at: https://glasser.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# glasser runs stop

> 请求停止 Run，并检查返回状态。

## 用法

```bash theme={null}
glasser runs stop -r <runId>
```

请求停止 Run。结果取决于当前状态、执行截止时间，以及是否已开始分派：

* 如果同步 Run 已超过执行截止时间，优先按超时处理：结算为 `FAILED`，失败类型为 `TIMED_OUT`，即使尚未记录任何数据提供商调用。
* 否则，若尚未记录数据提供商调用，Run 变为 `STOPPED`，释放预留余额，费用为 `0`。
* 如果已记录数据提供商调用，请求会记录 `stop_requested_at`。Run 继续执行至 `COMPLETED` 或 `FAILED`，最终费用取决于接口计费规则，请读取 Run 中的 `charge_usd`。
* Run 已处于终态时，返回 HTTP `409`，CLI 以 `1` 退出。

退出码 `0` 表示停止请求已被接受，返回的 Run 仍可能为 `RUNNING`。请检查 `status`，并通过 `glasser runs get -r <runId> --wait` 获取最终状态和费用。

## 选项

| 选项 | 说明 |
| - | - |
| `--run-id, -r` | Run ID |

全局选项、JSON 模式、退出码和环境变量见 [CLI 约定](https://glasser.ai/docs/zh/cli.md#global-flags)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.