Agent Skills
› openclaw/clawhub
› convex-crons
convex-crons
GitHub用于在 Convex 应用中定义和管理周期性定时任务。指导创建 cronJobs.ts,配置内部函数调度,确保处理程序幂等性,并验证仪表盘中的作业状态,实现可靠的后台自动化调度。
Trigger Scenarios
需要添加定期执行的任务
配置 Convex 定时作业
实现幂等性后台处理逻辑
Install
npx skills add openclaw/clawhub --skill convex-crons -g -y
SKILL.md
Frontmatter
{
"name": "convex-crons",
"description": "Add recurring scheduled jobs (crons) to the Convex app."
}
Add scheduled jobs (crons)
Define recurring jobs in convex/crons.ts targeting internal functions, with sane intervals and idempotent handlers.
Workflow
- Create convex/crons.ts with cronJobs().
- Schedule internal functions (never public api.*) at the right interval.
- Make handlers idempotent (safe to re-run); keep each run small.
- Verify the job appears in the dashboard schedule.
Rules
- Schedule internal.* functions, never api.*.
- Keep cron handlers small + idempotent.
- Don't poll tight intervals for things a subscription can push.
Version History
- d6a8c68 Current 2026-08-20 02:43


