Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(cli): drop PENDING as a parameter for message queue commands (#20367)

cielfc578eabf8e5
diff --git a/docs/administrator/admin/ragflow_cli.md b/docs/administrator/admin/ragflow_cli.md
index 9c1d3bddb7..8ad6f9126d 100644
--- a/docs/administrator/admin/ragflow_cli.md
+++ b/docs/administrator/admin/ragflow_cli.md
@@ -574,13 +574,9 @@ Lists messages currently retained in the task stream. The optional `PENDING` key
**Syntax**
```sql
-MQ LIST [PENDING];
+MQ LIST;
```
-| Parameter | Required | Description |
-| --- | --- | --- |
-| `[PENDING]` | No | Requests the pending-message form of the command. |
-
**Example**
```text
diff --git a/internal/cli/admin_parser.go b/internal/cli/admin_parser.go
index 3ea4f462b3..a32cf64cb1 100644
--- a/internal/cli/admin_parser.go
+++ b/internal/cli/admin_parser.go
@@ -2690,11 +2690,9 @@ func (p *Parser) parseMessageQueueCommand() (*Command, error) {
cmd = NewCommand("user_list_message_queue_command")
if p.curToken.Type == TokenPending {
- cmd.Params["pending"] = true
p.nextToken() // consume PENDING
- } else {
- cmd.Params["pending"] = false
}
+
case TokenPublish:
p.nextToken() // consume PUBLISH