← 返回
效率工具 中文

Queue Task

Durable queue-task helper for resumable, idempotent batch jobs in task-father task folders.
持久化队列任务助手,支持在任务父文件夹中可恢复、幂等的批量作业。
moodykong
效率工具 clawhub v0.1.0 1 版本 99855.6 Key: 无需
★ 0
Stars
📥 1,383
下载
💾 28
安装
1
版本
#latest

概述

queue-task

Use this skill for durable long-running queue jobs with resumable batches.

Layout (task-father only):

  • ///...

State files:

  • queue.jsonl
  • progress.json
  • done.jsonl
  • failed.jsonl
  • lock.json

Prerequisites

  • python3 --version
  • openclaw status
  • openclaw cron --help

Configuration (portable)

Skill-local config:

  • Example: config.env.example
  • Real machine config: config.env

Keys:

  • WORKSPACE_DIR
  • TASKS_DIR
  • BATCH_SIZE
  • LOCK_STALE_MINUTES
  • CRON_EXPR
  • CRON_TZ
  • DELIVERY_MODE
  • AGENT_ID

Initialization / Installation / Onboarding

Preferred (chat-first)

Provide:

1) task slug

2) batch size

3) lock stale minutes

4) schedule and timezone

Then initialize:

  • python3 scripts/queue_task.py init

Smoke test:

  • python3 scripts/queue_task.py status

Optional (terminal)

  • cp config.env.example config.env
  • Edit config.env
  • Run init/status commands above.

Commands

  • Init files:
  • python3 scripts/queue_task.py init
  • Status:
  • python3 scripts/queue_task.py status
  • Clear stale lock:
  • python3 scripts/queue_task.py clear-stale-lock
  • Print worker template:
  • python3 scripts/queue_task.py print-supervisor-template

Usage notes

  • Prefer append-only JSONL logs.
  • Process small batches.
  • Update progress.json after each item.
  • Keep idempotency keys task-defined.
  • Use lock file to avoid concurrent runs.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 07:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,878
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,339
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 147,805