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
CODEBLOCK0
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:
CODEBLOCK1
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 - INLINECODE1 : Warning issues found
- INLINECODE2 : Critical issues found
技能名称: cron-health-check-zc
详细描述:
Cron 健康检查 | OpenClaw 技能
描述
监控 OpenClaw 定时任务健康状态,识别失败、超时和投递问题。
Cron 健康检查 | OpenClaw 技能
通过分析运行历史并识别失败、超时和投递问题的模式,监控 OpenClaw 定时任务的健康状态。
用法
- - 作为定时任务主动监控任务健康状态
- 手动检查当前定时任务状态
- 修复定时任务错误后验证改进效果
bash
检查所有定时任务的健康状态(最近24小时)
python3 /Users/ghost/.openclaw/workspace/skills/cron-health-check/scripts/check
cronhealth.py
检查最近48小时
python3 /Users/ghost/.openclaw/workspace/skills/cron-health-check/scripts/check
cronhealth.py --hours 48
输出JSON格式
python3 /Users/ghost/.openclaw/workspace/skills/cron-health-check/scripts/check
cronhealth.py --json
该技能的功能
- - 分析 最近N小时的定时任务运行历史
- 识别 连续失败、超时或投递问题的任务
- 报告 每个任务的健康状态(健康/警告/严重)
- 建议 修复方案(例如,为投递失败添加 --best-effort-deliver)
- 检测 OpenRouter API 限制问题
作为定时任务集成
该技能可以定期运行以监控定时任务健康状态:
json
{
payload: {
kind: agentTurn,
message: 运行 cron-health-check 技能以分析定时任务健康状态。,
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 健康监控器
}
输出
每个任务的健康状态:
- - 健康:未检测到问题
- 警告:存在一些问题但不严重
- 严重:多次连续失败或超时
检测到的问题:
- - 连续错误
- 超时模式
- 投递失败(建议使用 --best-effort-deliver)
- OpenRouter API 超出限制
退出代码
- - 0:所有任务健康
- 1:发现警告问题
- 2:发现严重问题