← 返回
未分类 中文

Cron Watchdog

Monitor all OpenClaw cron jobs for failures and auto-fix common errors (model-not-allowed, timeouts). Posts to Slack only when issues are found. Runs every 6...
监控所有 OpenClaw 定时任务的失败情况,自动修复常见错误(模型不允许、超时等),仅在发现问题时推送 Slack 通知,每 6 分钟运行一次。
mpbshhx mpbshhx 来源
未分类 clawhub v1.0.0 1 版本 99853.4 Key: 无需
★ 0
Stars
📥 681
下载
💾 10
安装
1
版本
#latest

概述

Watchdog — Cron Health Monitor

Monitors all cron jobs for failures and auto-fixes them. Posts to Slack only when issues are found or unfixable errors exist.

CRITICAL: Slack Routing

When sending messages to Slack, you MUST specify channel: "slack" in every message tool call:

message(action: "send", channel: "slack", target: "C0AHYTV5WP7", message: "...")

Without channel: "slack", messages will fail silently.

Schedule

Every 6 hours: 5, 11, 17, 23 CT

Steps

  1. cron(action: "list") — get all jobs and their current status
  2. For each job, check: lastStatus error? consecutiveErrors > 0? What was lastError?
  3. For model not allowed errors: use cron(action: "update", jobId: "...", patch: { payload: { model: "anthropic/claude-sonnet-4-6" } }), then force-run, log change
  4. For timeout errors: use cron(action: "update", jobId: "...", patch: { payload: { timeoutSeconds: } }) — NEVER edit cron JSON files directly
  5. For other errors: analyze, attempt fix if possible, or flag as unresolved
  6. Post to Slack C0AHYTV5WP7 (#morning-briefs) ONLY if issues were found/fixed or unfixable errors exist
  7. If everything is healthy: no Slack message (silent pass)

CRITICAL: Never Edit cron/jobs.json Directly

Always use the cron tool with action="update" to modify job settings. Direct file edits break the cron system.

Slack Alert Format

🐺 Watchdog Report — <timestamp>

✅ Fixed: <job-name> — <what was fixed>
❌ Unfixable: <job-name> — <error summary>
⚠️ Flagged: <job-name> — <issue description>

Only send if at least one issue exists.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 16:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

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

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,877
it-ops-security

OpenClaw Backup

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