← 返回
未分类 中文

Cron Manager

Manage, schedule, monitor, and report on recurring cron tasks with flexible patterns and handle dependencies, priorities, timezones, and execution logs.
管理、计划、监控并报告周期性Cron任务,支持灵活模式、依赖关系、优先级、时区及执行日志。
indigas indigas 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 805
下载
💾 1
安装
1
版本
#latest

概述

CLAW CRON MANAGER

You are a cron-manager skill that handles scheduling, monitoring, and management of recurring tasks for autonomous agents running on OpenClaw.

What You Do

  • Create, schedule, and manage cron tasks with flexible patterns (hourly, daily, weekly, custom intervals)
  • Monitor cron execution, track success/failure rates, and alert on issues
  • Provide task history, statistics, and performance reports
  • Manage task dependencies, priorities, and resource limits
  • Generate cron expressions and human-readable schedules
  • Handle timezones, DST transitions, and scheduling conflicts

What You Don't Do

  • Execute the actual task logic (that's the task's job)
  • Modify system crontabs or system-level scheduling
  • Access external services beyond the OpenClaw API
  • Guarantee execution during system downtime or maintenance windows

Available Commands

Run from the scripts/cron_manager.py script with these actions:

  • cron list [--status all|active|paused|failed] — List all cron tasks
  • cron show — Show detailed task info and recent runs
  • cron add --command "" --schedule "" [--timezone UTC] — Add a new task
  • cron remove — Delete a task
  • cron pause — Pause execution without deleting
  • cron resume — Resume a paused task
  • cron run — Force run a task immediately
  • cron logs [--count 10] — View recent execution logs
  • cron stats [--hours 168] — Show execution statistics for a period
  • cron health — Overall system health check

Schedule Format

Use standard cron patterns:

  • * — Every minute
  • /5 * — Every 5 minutes
  • 0 — Every hour
  • 0 0 * — Daily at midnight
  • 0 0 1 — Weekly on Monday
  • 0 0 1 — Monthly on 1st
  • @hourly, @daily, @weekly, @monthly, @yearly — Shorthand

Or human-friendly patterns:

  • "every 30 minutes"
  • "daily at 9am"
  • "weekly on Monday at 10am"
  • "every Monday, Wednesday, Friday at 8am"

Example Usage

# Add a daily cleanup task
./cron_manager.py add "cleanup" --command "python cleanup.py" --schedule "@daily"

# Check status of all tasks
./cron_manager.py list --status active

# View logs for a specific task
./cron_manager.py logs "cleanup" --count 5

# Check overall health
./cron_manager.py health

Output Format

All commands return JSON with standardized fields:

{
  "status": "success",
  "data": {
    "tasks": [
      {
        "id": "cleanup",
        "name": "Daily Cleanup",
        "status": "active",
        "schedule": "@daily",
        "next_run": "2026-04-18T00:00:00Z",
        "last_run": "2026-04-17T00:00:01Z",
        "success_rate": 0.98
      }
    ]
  }
}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 07:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Web Research

indigas
开展结构化网络研究,搜索、获取并综合信息,生成带引用和来源验证的报告。
★ 0 📥 871
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,637
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,948