convex-cron-jobs

Schedule recurring background tasks in Convex with interval and cron triggers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the need to manually trigger recurring background tasks in Convex applications, such as data cleanup, external syncing, and report generation, saving developer time and ensuring consistent execution of critical workflows.

Core Features & Use Cases

  • Flexible Scheduling: Supports both simple interval-based scheduling (e.g., every 5 minutes) and precise cron expression scheduling for complex timing needs.
  • Production-Ready Patterns: Includes built-in guidance for error handling, large dataset batching, execution logging, and secure internal function calls.
  • Use Case: Set up an hourly job to clean up expired user sessions and a daily midnight cron job to generate and store usage reports without manual intervention.

Quick Start

Use the convex-cron-jobs skill to configure a cron job that generates a daily usage report at midnight UTC and an interval job that cleans up expired user sessions every hour.

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?

You can schedule recurring background tasks in Convex using interval-based triggers for simple timing or cron expressions for complex schedules. This automates workflows like data cleanup and report generation without manual intervention.

Can I use cron expressions for complex scheduling in Convex applications?

Yes, Convex supports precise cron expression scheduling for complex timing needs alongside simple interval-based triggers. You can configure jobs to run at specific times, such as generating daily usage reports at midnight UTC.

How do I handle errors and large datasets in Convex scheduled functions?

Convex scheduled functions support production-ready patterns for error handling, large dataset batching, and execution logging. These built-in patterns ensure your automated workflows execute securely and consistently at scale.

What's the best way to automate data cleanup and syncing in Convex?

The best way to automate data cleanup and syncing in Convex is configuring scheduled functions with interval or cron triggers. This approach ensures consistent execution of critical workflows like removing expired user sessions hourly.

Do I need external dependencies to run cron jobs in Convex?

No external dependencies are required to run cron jobs in Convex. The platform natively supports scheduling recurring background tasks, secure internal function calls, and execution logging directly within your application environment.

Can I securely call internal functions from scheduled jobs in Convex?

Yes, Convex provides implementation patterns for secure internal function calls within scheduled jobs. This ensures your automated background tasks execute safely without exposing sensitive workflows to external access.