convex-cron-jobs

Schedule recurring background jobs in Convex with cron expressions.

1|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/cgRGM/rivercitymd --skill convex-cron-jobs-cgrgm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/cgRGM/rivercitymd/tree/main/.cursor/skills/convex-cron-jobs
Command: npx skills add https://github.com/cgRGM/rivercitymd --skill convex-cron-jobs-cgrgm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design and implement reliable scheduled background work in Convex so recurring maintenance, syncing, reporting, and automation tasks run on time without manual intervention.

Core Features & Use Cases

  • Recurring scheduling: Set up interval-based jobs or cron-expression schedules for hourly, daily, weekly, or custom timing.
  • Operational resilience: Add logging, retries, batching, and monitoring patterns for production-ready background processing.
  • Safe task execution: Route scheduled jobs through internal functions, and use actions for external API calls and long-running sync work.
  • Use case: Use it to automate expired-session cleanup, daily analytics generation, payment or invoice workflows, and periodic data synchronization in a Convex app.

Quick Start

Ask for a Convex cron job setup that schedules your recurring task, uses an internal handler, and includes monitoring and batching guidance.

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 without time drift?

Set up recurring Convex cron jobs by defining internal functions and configuring the cronJobs schedule with intervals or cron expressions. This approach uses UTC-aware scheduling to ensure recurring background tasks run without drift or manual intervention.

Can I use Convex actions for external API calls in scheduled cron jobs?

Yes, Convex actions handle external API calls and long-running sync work in scheduled jobs. Route recurring scheduled jobs through internal functions, and use actions specifically for safe external API interactions and extended synchronization tasks within the cron configuration.

What is the best way to add retries and logging to Convex batch processing jobs?

Add retries and logging to Convex batch processing jobs by implementing operational resilience patterns within internal function handlers. Configure batch processing alongside monitoring and retry logic to achieve production-ready background processing for cleanup and reporting workflows.

Does Convex support cron expressions for hourly and daily reporting tasks?

Yes, Convex supports cron expressions for hourly, daily, weekly, or custom timing schedules. Configure cron jobs using these expressions to automate recurring reporting, analytics generation, and periodic data synchronization tasks reliably.

How do I automate expired-session cleanup using Convex internal functions?

Automate expired-session cleanup by scheduling a recurring Convex internal function through the cronJobs configuration. Use interval schedules or cron expressions to trigger the cleanup task periodically, ensuring session maintenance runs without drift or manual intervention.

Why do my scheduled Convex tasks require UTC-aware scheduling?

Scheduled Convex tasks require UTC-aware scheduling to prevent time drift and ensure recurring jobs execute at consistent intervals. Using UTC-aware scheduling maintains reliable execution for recurring maintenance, syncing, and reporting workflows across different environments.