> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow/stop.md).

# 停止

停止是立即中止正在运行的脚本的动作。

> 📌 注意范围：此操作仅对当前配置文件正在运行的线程有效，不影响同一操作期间并行运行的其他线程或配置文件。

此操作通常与条件语句 If 结合使用，以处理严重错误、无法继续脚本的错误，或当线程已完成主要任务时。

#### 实际示例：当账户被检查点时停止线程

假设您正在编写一个养号脚本。当打开浏览器时，如果发现账户已被锁定（检查点），那么继续执行后续操作，如浏览文章、点赞、发消息等，完全没有意义，并且浪费机器资源。

* 配置方法：
  * 使用 If 语句检查错误消息的出现：`如果出现“账户被锁定”`。
  * 在这个 If 语句内部，您调用停止操作。
* 结果：当系统扫描到账户被锁定时，它将遇到停止命令并立即关闭该配置文件的线程。其他线程中的配置文件将继续正常运行而不受影响。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow/stop.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
