convex-cron-jobs

Schedules recurring Convex functions for automated background jobs and workflows.

Updated May 4, 2024
One-click install
npx skills add https://github.com/kcrlee/dots --skill convex-cron-jobs-kcrlee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/kcrlee/dots/tree/main/claude/.claude/skills/convex-cron-jobs
Command: npx skills add https://github.com/kcrlee/dots --skill convex-cron-jobs-kcrlee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex cron jobs remove the manual burden of running recurring backend work, making it easier to automate cleanup, synchronization, reporting, and health checks without hand-operated scripts.

Core Features & Use Cases

  • Recurring scheduling: Run tasks at fixed intervals or precise cron times.
  • Production safeguards: Use internal functions, logging, batching, and retries to keep jobs reliable.
  • Typical uses: Daily reports, session cleanup, data syncs, cache purges, and periodic service checks.
  • Example: A team can schedule a nightly cleanup job that deletes expired records, logs the run, and continues processing in batches until everything is complete.

Quick Start

Use this Skill to design a Convex cron job that schedules recurring internal tasks with safe scheduling, logging, and batching patterns.

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, use cron expressions or interval timers to trigger internal functions, automating workflows like daily reports or session cleanup without manual scripts.

What is the best way to handle long-running cleanup tasks in Convex without hitting timeouts?

Handle long-running cleanup tasks in Convex by processing records in batches and using retry-friendly execution patterns. This scalable approach avoids timeouts and ensures jobs complete reliably across large datasets.

How do I secure scheduled Convex cron jobs for production use?

Secure scheduled Convex cron jobs for production by using internal mutations and actions that prevent external access, while adding logging and monitoring to track job execution and handle failures.

Why do my Convex cron jobs fail when scheduled without UTC-aware timing?

Convex cron jobs require UTC-aware scheduling for reliable execution. Without UTC-awareness, time mismatches cause jobs to run at incorrect intervals or fail to trigger expected automated workflows.

Can I use Convex internal functions for batch processing and health checks?

Yes, you can use Convex internal functions for batch processing and health checks. They support scalable processing patterns with logging and retries, ensuring periodic service checks and data syncs run safely and reliably.