Skip to main content

crons

Set up recurring scheduled jobs (crons) on Convex — digests, cleanups, polling, retries. TRIGGER when the user wants a recurring/scheduled task ('every day/hour', cron, periodic cleanup). Targets internal functions, idempotent handlers.

跳到安装

来源信息

仓库
get-convex/convex-backend-skill
最近来源活动
2026年7月7日 16:41
检测到的 SKILL.md 语言
英语
星标
6
分支
8

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
crons
description
Set up recurring scheduled jobs (crons) on Convex — digests, cleanups, polling, retries. TRIGGER when the user wants a recurring/scheduled task ('every day/hour', cron, periodic cleanup). Targets internal functions, idempotent handlers.
# Add scheduled jobs (crons) Define recurring jobs in convex/crons.ts targeting internal functions, with sane intervals and idempotent handlers. ## Steps 1. Create convex/crons.ts with cronJobs(). 2. Schedule internal functions (never public api.*) at the right interval. 3. Make handlers idempotent (safe to re-run); keep each run small. 4. 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.
在 GitHub 查看