360 Secure SkillHub
360 安全技能中心

Cron Health Check

核心功能:分析指定时长内的OpenClaw cron作业运行历史,识别连续故障、超时、投递问题及OpenRouter API限额异常,报告单作业健康状态(健康/警告/严重)并给出修复建议。典型场景:可定时主动监控、手动查询当前状态、修复后验证效果。通过命令行调用,支持指定统计时长,输出文本或JSON格式,以退出码区分整体健康等级。

RuneweaverStudios
RuneweaverStudios
热度 84.34
最近更新 2026-05-20 03:38:59
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cron-health-check
Metadata
name
cron-health-check
displayName
Cron Health Check | OpenClaw Skill
description
Monitors OpenClaw cron job health, identifies failures, timeouts, and delivery issues.
version
1.0.0

Cron Health Check | OpenClaw Skill

Description

Monitors OpenClaw cron job health, identifies failures, timeouts, and delivery issues.

Cron Health Check | OpenClaw Skill

Monitors the health of OpenClaw cron jobs by analyzing run history and identifying patterns of failures, timeouts, and delivery issues.

Usage

  • As a scheduled cron job to monitor job health proactively
  • Manually to check current cron job status
  • After fixing cron job errors to verify improvements
# Check health of all cron jobs (last 24 hours)
python3 /Users/ghost/.openclaw/workspace/skills/cron-health-check/scripts/check_cron_health.py

# Check last 48 hours
python3 /Users/ghost/.openclaw/workspace/skills/cron-health-check/scripts/check_cron_health.py --hours 48

# Output JSON format
python3 /Users/ghost/.openclaw/workspace/skills/cron-health-check/scripts/check_cron_health.py --json

What this skill does

  • Analyzes cron job run history from the last N hours
  • Identifies jobs with consecutive failures, timeouts, or delivery issues
  • Reports health status (healthy/warning/critical) for each job
  • Suggests fixes (e.g., adding --best-effort-deliver for delivery failures)
  • Detects OpenRouter API limit issues

Integration as a Cron Job

This skill can run periodically to monitor cron job health:

{
  "payload": {
    "kind": "agentTurn",
    "message": "Run cron-health-check skill to analyze cron job health.",
    "model": "openrouter/google/gemini-2.5-flash",
    "thinking": "low",
    "timeoutSeconds": 60
  },
  "schedule": {
    "kind": "cron",
    "cron": "0 */6 * * *"
  },
  "delivery": {
    "mode": "announce",
    "bestEffort": true
  },
  "sessionTarget": "isolated",
  "name": "Cron Health Monitor"
}

Output

Health status for each job:

  • healthy: No issues detected
  • warning: Some issues but not critical
  • critical: Multiple consecutive failures or timeouts

Issues detected:

  • Consecutive errors
  • Timeout patterns
  • Delivery failures (suggests --best-effort-deliver)
  • OpenRouter API limit exceeded

Exit Codes

  • 0: All jobs healthy
  • 1: Warning issues found
  • 2: Critical issues found