convex-cron-jobs

Schedule recurring Convex functions with interval and cron expressions.

33|2|Updated Feb 21, 2025
One-click install
npx skills add https://github.com/yspreen/dotfiles --skill convex-cron-jobs-yspreen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/yspreen/dotfiles/tree/main/.agents/skills/convex-cron-jobs
Command: npx skills add https://github.com/yspreen/dotfiles --skill convex-cron-jobs-yspreen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex Cron Jobs provides a structured approach to scheduling recurring functions within Convex applications, enabling reliable background work with retries and monitoring.

Core Features & Use Cases

  • Interval-based and cron-expression scheduling for flexible timing.
  • Automatic retries, error handling, and dashboard monitoring for production reliability.
  • Real-world use cases include periodic data syncing, cleanup tasks, and automated reports.

Quick Start

Create a daily cron named 'daily report' that runs at midnight UTC and triggers internal.reports.generateDailyReport.

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?

To schedule recurring background tasks in Convex, you define them through the cronJobs configuration using interval-based or cron-expression timing. This approach ensures reliable execution with automatic retries and observability.

Does Convex support cron expressions for scheduling internal functions?

Convex supports standard cron expressions for scheduling internal functions, allowing precise timing control. Consistent use of internal functions ensures secure execution of background tasks like data syncing or report generation.

What is the best way to handle retries for scheduled Convex functions?

Handling retries for scheduled Convex functions is managed automatically by defining cron jobs through the structured cronJobs configuration. This provides built-in error handling, automatic retries, and dashboard monitoring for production reliability.

Can I use interval-based scheduling for periodic data syncing in Convex?

Interval-based scheduling is fully supported in Convex for periodic data syncing. By configuring cron jobs, you automate recurring internal functions with automatic retries and production-grade observability.

How do I trigger an internal function daily at midnight UTC in Convex?

To trigger an internal function daily at midnight UTC, create a named cron job in your configuration using a cron expression. This consistently invokes the target internal function securely for automated report generation or cleanup tasks.

Are Convex cron jobs suitable for production workloads with monitoring needs?

Convex cron jobs are designed for production workloads requiring monitoring. They provide automatic retries, error handling, and dashboard observability, making them reliable for periodic data syncing and automated reports.