convex-cron-jobs

Schedule recurring tasks for Convex applications using crons.interval and crons.cron.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/EricJamesCrow/smartpockets --skill convex-cron-jobs-ericjamescrow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/EricJamesCrow/smartpockets/tree/main/.claude/skills/convex-cron-jobs
Command: npx skills add https://github.com/EricJamesCrow/smartpockets --skill convex-cron-jobs-ericjamescrow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Schedule recurring tasks for Convex applications to run automatically.

Core Features & Use Cases

  • Interval-based scheduling
  • Cron expressions
  • Automatic retries and monitoring
  • Use cases: data sync, cleanup, periodic reporting, health checks

Quick Start

Create a cron by calling crons.interval with a descriptive name, a schedule specification, a target internal function, and an optional arguments object, then export the configured cron.

Frequently Asked Questions about convex-cron-jobs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I schedule recurring background jobs in Convex?

You can schedule recurring background jobs in Convex by calling crons.interval with a descriptive name, a schedule specification, a target internal function, and optional arguments, then exporting the configured cron.

What is the difference between interval and cron scheduling in Convex?

Interval scheduling executes tasks at fixed time periods, whereas cron expressions allow precise UTC timing for complex recurring schedules. Both validate via crons.interval and crons.cron to automate Convex background tasks.

Can I use cron expressions for data synchronization and cleanup tasks in Convex?

Yes, you can use cron expressions for data synchronization, cleanup jobs, periodic reporting, and health checks across Convex apps. The system validates scheduling via crons.cron and enforces UTC timing for these recurring tasks.

Does Convex cron scheduling support automatic retries and error handling?

Yes, Convex cron scheduling supports automatic retries, monitoring, batching, logging, and error handling. It calls internal functions for security while executing recurring background tasks like periodic maintenance and data synchronization.

Why does my Convex cron job require an internal function?

Convex cron jobs require an internal function to enforce security. By targeting internal functions, the scheduling system ensures that recurring tasks like cleanup jobs and data sync execute securely without exposing public endpoints.