C
convex-crons
by @convexv
4.7(120)
为 Convex 应用添加周期性定时任务(crons),在 convex/crons.ts 中定义调度内部函数的作业。此技能强制使用内部函数、合理的执行间隔与幂等处理逻辑,并提醒用订阅推送替代高频轮询,让后台作业一次配置正确、可安全重跑。
安装方式
npx skills add https://github.com/convex/agent-skills --skill convex-cronscompare_arrows
Before / After 效果对比
1 组使用前
开发者手动翻查文档、凭感觉猜执行间隔,还把定时任务挂在公开接口上,往往部署后才发现任务根本没跑、被重复触发,或者频率过高持续拖慢数据库。
使用后
此技能给出定时任务配置文件的标准结构与内部函数调度规则,并强调幂等处理与合理间隔,作业一次配置成功、可安全重跑,后台调度长期稳定。
SKILL.md
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.
用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量46.4K
评分4.7 / 5.0
版本
更新日期2026年11月24日
对比案例1 组
用户评分
4.7(120)
5
37%
4
43%
3
13%
2
5%
1
2%
为此 Skill 评分
0.0
兼容平台
🤖claude-code
时间线
创建2026年10月17日
最后更新2026年11月24日