跳到正文
TakoAPI
返回技能列表

cron-retry

由 jrbobbyhansen-pixel 提供

Self-Hosted & Automation
3.0k下载量由 clawskills.sh 提供
3星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Auto-retry failed cron jobs on connection recovery.

描述

该技能的功能

Monitors cron jobs for network-related failures and retries them automatically when connectivity is restored. Works by adding a recovery check to the heartbeat cycle: on each heartbeat, it lists all jobs, filters for error states caused by transient network issues, and re-runs eligible ones. Skips logic errors, auth failures, and disabled jobs.

Distinguishes retryable network errors from permanent failures automatically, so jobs recover without manual inspection or re-triggering.

何时使用

  • Recovering a nightly briefing that failed to send during a network outage
  • Retrying a scheduled data fetch after a DNS lookup failure
  • Resuming a job that timed out mid-run due to dropped connectivity
  • Auto-recovering message delivery failures after a server restart
  • Reducing manual intervention when flaky network causes recurring cron failures

示例工作流

输入

User asks: My evening briefing cron job failed last night due to a network error — can it be recovered?

智能体
  1. 1

    Call cron tool with action: "list" to fetch all jobs

  2. 2

    Filter jobs where lastStatus is "error" and enabled is true

  3. 3

    Check lastError of each failed job against network error patterns (ETIMEDOUT, fetch failed, ECONNREFUSED, etc.)

  4. 4

    Call cron tool with action: "run" and the job ID for each retryable job

  5. 5

    Report recovery results

输出

Recovered 1 job: evening-wrap-briefing

安装

clawhub install jrbobbyhansen-pixel/cron-retry

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接