C

convex-crons

by @convexv
4.7(120)

Adds recurring scheduled jobs (crons) to a Convex app by defining cronJobs() in convex/crons.ts that target internal functions. It enforces internal-only targets, sane intervals, and idempotent handlers while steering you toward subscriptions instead of tight polling, so background jobs deploy correctly and re-run safely.

cronsconvexscheduled-jobsbackendserverlessGitHub
Installation
npx skills add https://github.com/convex/agent-skills --skill convex-crons
compare_arrows

Before / After Comparison

1 组
Before

Developers hunt through docs, guess at intervals, and point scheduled jobs at public endpoints, only to find after deploy that jobs never ran, fired twice, or hammered the database at a too-tight interval.

After

This Skill provides the standard shape for the cron config file and internal-function scheduling rules, with idempotent handlers and sane intervals, so jobs deploy correctly the first time and re-run safely.

SKILL.md

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.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs46.4K
Rating4.7 / 5.0
Version
Updated2026年11月24日
Comparisons1

User Rating

4.7(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年10月17日
Last Updated2026年11月24日
🎁 Agent Knowledge Cards
Survey