Add files via upload

This commit is contained in:
公明
2026-04-17 11:53:20 +08:00
committed by GitHub
parent 15c7692988
commit fb0724a862
2 changed files with 36 additions and 30 deletions
+3
View File
@@ -69,6 +69,9 @@ func RegisterBatchTaskMCPTools(mcpServer *mcp.Server, h *AgentHandler, logger *z
pageSize = 100
}
offset := (page - 1) * pageSize
if offset > 100000 {
offset = 100000
}
queues, total, err := h.batchTaskManager.ListQueues(pageSize, offset, status, keyword)
if err != nil {
return batchMCPTextResult(fmt.Sprintf("列出队列失败: %v", err), true), nil