Convex Crons

作者 get-convex2cfe645c87f9无许可证63 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6天前更新

Add recurring scheduled jobs (crons) to the Convex app.

AI 生成的概览

通过定义面向内部函数的定时任务,为 Convex 应用添加周期性计划任务(cron)。

功能
指导智能体创建包含 cronJobs() 的 convex/crons.ts 文件,并按合适的时间间隔调度内部函数。它强调处理函数应保持小巧且幂等,并确认任务出现在仪表盘的计划列表中。产出的是配置说明,而不是脚本。
适用场景
适用于 Convex 应用需要周期性后台工作的场景,例如定期维护或清理任务。也适合计划任务应调用内部函数而非公开 API 端点的情况。
运行要求
需要一个 Convex 项目,并具备 Convex 工具链和仪表盘访问权限。该技能不附带脚本,仅为说明文档。
<!-- GENERATED from convex-agents content/capabilities/crons.json — do not edit by hand. -->

Add scheduled jobs (crons)

Define recurring jobs in convex/crons.ts targeting internal functions, with sane intervals and idempotent handlers.

Workflow

  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.

来源与署名

来源:get-convex/agent-skills位于skills/convex-crons提交2cfe645

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架