convex-cron-jobs

Schedule recurring Convex tasks with cron expressions and interval timers.

1|1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/mauricioacp/tanstack-convex-better-auth-template --skill convex-cron-jobs-mauricioacp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/mauricioacp/tanstack-convex-better-auth-template/tree/main/.agents/skills/convex-cron-jobs
Command: npx skills add https://github.com/mauricioacp/tanstack-convex-better-auth-template --skill convex-cron-jobs-mauricioacp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Schedule recurring background tasks in Convex apps using cron expressions and interval timers to automate maintenance, data syncing, and reporting.

Core Features & Use Cases

  • Interval scheduling: run tasks at fixed intervals (minutes, hours) for periodic work.
  • Cron-based scheduling: trigger tasks at precise times or days using cron expressions.
  • Monitoring & resilience: built-in retry strategies and observability guidelines for reliable execution.
  • Use Case: automate daily data synchronization, nightly cleanups, and periodic analytics jobs across services.

Quick Start

Schedule a Convex cron by editing convex/crons.ts to define your first cron or interval job.

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, define your tasks in the convex/crons.ts file using cron expressions for precise timing or interval timers for fixed periodic execution. This coordinates automated maintenance and data syncing reliably.

What is the best way to run periodic data synchronization in a Convex application?

The best way to run periodic data synchronization in a Convex application is using interval-based scheduling for fixed periodic work or cron-based scheduling for precise timing. This ensures reliable execution of automated reporting and syncing tasks.

Does Convex support cron expressions for triggering internal functions?

Yes, Convex supports cron expressions for triggering internal functions. You can configure precise times or days for task execution by defining cron-based jobs within your convex/crons.ts file to automate nightly cleanups and analytics.

How do you handle error handling and logging for Convex interval calls?

Handling errors and logging for Convex interval calls involves implementing built-in retry strategies and observability guidelines. This ensures reliable execution of scheduled tasks by monitoring background jobs and managing errors across services.

Can I use interval timers for nightly cleanups in Convex?

Yes, you can use interval timers for nightly cleanups in Convex. By configuring interval-based jobs in your convex/crons.ts file, you can run tasks at fixed minutes or hours to automate periodic maintenance and data tasks securely.

What are the limitations of scheduling cron jobs in Convex?

Scheduling cron jobs in Convex requires coordinating cron-based and interval-based jobs within internal functions. While it supports batching and security best practices, complex scheduling logic must be managed carefully to avoid execution conflicts across schemas.