Agent Skills
› ajanraj/OpenChat
› convex-crons
convex-crons
GitHub用于在 Convex 应用中配置和管理定时任务(Crons),包括创建调度文件、设定内部函数执行间隔及确保幂等性。
触发场景
需要添加定时任务
配置 Cron 调度
自动化后台作业
安装
npx skills add ajanraj/OpenChat --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.
版本历史
- 55de5cd 当前 2026-10-19 22:53


