convex-cron-jobs

Schedule recurring background tasks in Convex applications using cronJobs.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/qdhenry/Foundry-OSS --skill convex-cron-jobs-qdhenry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/qdhenry/Foundry-OSS/tree/main/.agents/skills/convex-cron-jobs
Command: npx skills add https://github.com/qdhenry/Foundry-OSS --skill convex-cron-jobs-qdhenry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scheduling recurring processes within Convex applications to run on a reliable, predictable cadence.

Core Features & Use Cases

  • Interval-based scheduling: run functions at fixed intervals (e.g., hourly, daily).
  • Cron expression scheduling: schedule tasks with CRON syntax for precise timing.
  • Monitoring & retries: built-in visibility and automatic retry strategies to improve resilience.
  • Use Case: routinely perform data synchronization, cleanup tasks, and report generation in production Convex apps.

Quick Start

Create a cron in convex/crons.ts to schedule a function every day at midnight UTC.

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 tasks in a Convex application?

Scheduling recurring background tasks in Convex is handled by defining cronJobs in convex/crons.ts. You can configure functions to run at fixed intervals or via cron expressions for predictable execution cadence.

What is the best way to automate daily data synchronization and cleanup in Convex?

Automating data synchronization and cleanup in Convex is best achieved using interval-based and cron expression scheduling. This approach enables reliable execution of routine maintenance tasks in production applications.

Does Convex support cron expression syntax for precise task scheduling?

Yes, Convex supports cron expression syntax for precise task scheduling. This allows you to schedule background functions with exact timing rules, such as executing a task every day at midnight UTC.

How do I handle monitoring and error handling for scheduled Convex cron jobs?

Monitoring and error handling for scheduled Convex cron jobs involves implementing automatic retry strategies and built-in visibility. This improves resilience for production background tasks like report generation.

Can I use interval-based scheduling for hourly reporting in production Convex apps?

Yes, interval-based scheduling in Convex allows functions to run at fixed intervals like hourly or daily. This is suitable for routinely generating reports and performing data sync in production apps.