Agent Skills
› openclaw/clawhub
› convex-crons
convex-crons
GitHub为 Convex 应用添加定时任务(Crons),指导创建 crons.ts 文件,调度内部函数并实现幂等处理,确保任务安全运行。
Trigger Scenarios
需要配置定期执行的后台任务
在 Convex 应用中设置 Cron Job
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


