← 返回
未分类 中文

Taskqueue

In-memory priority task queue for AI agents. Create tasks with priorities and tags, claim the next highest-priority task, mark tasks complete or failed, filt...
用于 AI 代理的内存优先级任务队列。支持创建带优先级和标签的任务、领取最高优先级任务、标记完成或失败、过滤...
mirni mirni 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 345
下载
💾 0
安装
1
版本
#latest

概述

TaskQueue

Priority task queue for agent workflows.

Start the server

uvicorn taskqueue.app:app --port 8014

Create a task

curl -s -X POST http://localhost:8014/v1/tasks \
  -H "Content-Type: application/json" \
  -d '{"title": "Scan skill", "payload": {"skill": "my-skill"}, "priority": 5, "tags": ["security"]}' | jq

Claim the next task (highest priority first)

curl -s -X POST http://localhost:8014/v1/claim | jq

Returns the task with status changed to running.

Complete or fail a task

curl -s -X POST http://localhost:8014/v1/tasks/TASK_ID/complete \
  -H "Content-Type: application/json" \
  -d '{"result": {"output": "all clear"}}' | jq

curl -s -X POST http://localhost:8014/v1/tasks/TASK_ID/fail \
  -H "Content-Type: application/json" \
  -d '{"error": "scan timed out"}' | jq

List and filter tasks

curl -s "http://localhost:8014/v1/tasks?status=pending" | jq
curl -s "http://localhost:8014/v1/tasks?tag=security" | jq

Queue stats

curl -s http://localhost:8014/v1/stats | jq

Returns total, pending, running, completed, failed.

Endpoints

MethodPathDescription
---------------------------
POST/v1/tasksCreate a task
GET/v1/tasksList tasks (filter: ?status=, ?tag=)
GET/v1/tasks/{id}Get task by ID
POST/v1/claimClaim next pending task
POST/v1/tasks/{id}/completeMark done with result
POST/v1/tasks/{id}/failMark failed with error
GET/v1/statsQueue statistics

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 16:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Agent Observability Stack: Distributed Tracing, Metrics, and Alerting for Multi-Agent Systems

mirni
Agent 可观测性栈:多代理系统的分布式追踪、指标和告警。为代理商务构建完整的可观测性栈:OpenT...
★ 0 📥 613
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 859 📥 340,723
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,510 📥 568,352