convex-cron-jobs

Schedule recurring functions in Convex applications using cronJobs APIs.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/rieckt/create-loumi-app --skill convex-cron-jobs-rieckt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/rieckt/create-loumi-app/tree/main/template/skills/convex/convex-cron-jobs
Command: npx skills add https://github.com/rieckt/create-loumi-app --skill convex-cron-jobs-rieckt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex cron scheduling enables developers to automate routine work by running recurring functions in Convex applications, reducing manual maintenance.

Core Features & Use Cases

  • Interval-based scheduling for periodic tasks (e.g., cleanup jobs, data sync)
  • Cron expression scheduling for precise timing (e.g., daily reports at a fixed time)
  • Built-in monitoring and retry mechanisms to improve reliability
  • Use Case: Automatically archive logs every night and refresh caches to keep apps responsive.

Quick Start

Create a convex/crons.ts using cronJobs to schedule your tasks with an interval and a cron example.

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 Convex?

Use the convex/server cronJobs API to define recurring functions in a convex/crons.ts file. You can automate maintenance tasks like data syncing, cleanup, and reporting with interval-based or cron expression scheduling for precise timing.

Can I pass arguments to scheduled Convex cron jobs?

Yes, Convex cron scheduling supports optional arguments when invoking recurring functions. This lets you parameterize tasks such as data syncing or cleanup, so the same scheduled function can operate on different inputs across runs.

What's the best way to handle retries and monitoring for Convex scheduled functions?

Built-in retry mechanisms and logging improve reliability for Convex scheduled functions. When you define recurring tasks using cronJobs, the framework incorporates monitoring and retry logic to ensure background jobs like nightly archiving execute robustly.

How do I secure internal functions called by Convex cron jobs?

Convex cron scheduling enforces security by calling internal functions directly. This prevents external clients from invoking sensitive maintenance operations, ensuring that only authorized scheduled tasks can trigger data syncing, cleanup, or reporting logic.

Can I batch operations within a scheduled Convex cron job?

Yes, Convex cron scheduling incorporates batching for robustness when processing recurring tasks. This allows scheduled functions to handle multiple records efficiently during maintenance operations like data syncing or nightly log archiving.