convex-cron-jobs

Schedule recurring Convex functions with interval and cron timing.

Updated Dec 25, 2025
One-click install
npx skills add https://github.com/benfwalla/things-to-be-happy-about --skill convex-cron-jobs-benfwalla
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/benfwalla/things-to-be-happy-about/tree/main/.claude/skills/convex-cron-jobs
Command: npx skills add https://github.com/benfwalla/things-to-be-happy-about --skill convex-cron-jobs-benfwalla

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex Cron Jobs provide a robust, scalable mechanism to schedule recurring functions in Convex applications, enabling reliable background processing, automated workflows, and predictable maintenance tasks.

Core Features & Use Cases

  • Interval scheduling for recurring tasks (e.g., cleanup, data sync)
  • Cron expression support for precise timing
  • Automatic retries and error handling
  • Monitoring and logging for production reliability
  • Best practices: call internal functions, use batching, and timezone awareness

Quick Start

Create a convex/crons.ts file and start defining interval and cron jobs using the cronJobs API, then export default crons.

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?

To schedule recurring background jobs in Convex, create a convex/crons.ts file and use the cronJobs API to define interval or cron-based timing, then export default crons to run functions reliably on a UTC-aligned cadence.

What is the best way to automate data synchronization and maintenance tasks in Convex?

Automating data synchronization and maintenance tasks in Convex is best handled by cron jobs, which provide a robust mechanism for scheduling recurring internal functions with automatic retries and error handling.

Does Convex support cron expressions for precise background job scheduling?

Yes, Convex supports cron expressions for precise background job scheduling, allowing you to define exact timing alongside standard interval scheduling for recurring tasks within your application.

Can I use internal functions for secure background processing in Convex?

Yes, you can and should use internal functions for secure background processing in Convex, as implementing best practices by calling internal functions ensures your scheduled cron jobs operate securely.

How does Convex handle error handling and observability for scheduled jobs?

Convex handles error handling and observability for scheduled jobs by providing automatic retries, monitoring, and logging features to ensure production reliability for your recurring background tasks.

Why are my Convex cron jobs running at unexpected times?

Your Convex cron jobs may run at unexpected times because they operate on a UTC-aligned cadence, meaning timezone awareness is required when defining cron expressions or interval timing for your scheduled functions.