Skip to content

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

Revert "fix(cli): drop PENDING as a parameter for message queue commands" (#20823)

cielb8ff1a416f5f
diff --git a/docs/administrator/admin/ragflow_cli.md b/docs/administrator/admin/ragflow_cli.md
index c472557bc2..47e2062273 100644
--- a/docs/administrator/admin/ragflow_cli.md
+++ b/docs/administrator/admin/ragflow_cli.md
@@ -574,9 +574,13 @@ Lists messages currently retained in the task stream. The optional `PENDING` key
**Syntax**
```sql
-MQ LIST;
+MQ LIST [PENDING];
```
+| 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 a32cf64cb1..3ea4f462b3 100644
--- a/internal/cli/admin_parser.go
+++ b/internal/cli/admin_parser.go
@@ -2690,9 +2690,11 @@ 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