convex-cron-jobs

Schedule recurring background tasks in Convex using interval and cron expressions.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/mikeyfennelly1/hackeurope--210226 --skill convex-cron-jobs-mikeyfennelly1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/mikeyfennelly1/hackeurope--210226/tree/main/.agents/skills/convex-cron-jobs
Command: npx skills add https://github.com/mikeyfennelly1/hackeurope--210226 --skill convex-cron-jobs-mikeyfennelly1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to reliably schedule and manage recurring background tasks within Convex applications, automating routine operations and ensuring timely execution of essential processes.

Core Features & Use Cases

  • Interval Scheduling: Set tasks to run at fixed intervals (e.g., every 5 minutes, every hour).
  • Cron Expression Scheduling: Define precise execution times using standard cron syntax (e.g., daily at midnight, weekly on Mondays).
  • Use Case: Automatically clean up expired user sessions every hour, generate daily or weekly reports, or sync data from external APIs at regular intervals.

Quick Start

Configure a cron job to run the internal.tasks.cleanupExpiredSessions function 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?

Cron expression scheduling in Convex uses standard cron syntax to define precise execution times, such as daily at midnight or weekly on Mondays. This works alongside interval scheduling for fixed frequencies like every hour.

Can I monitor and retry failed scheduled jobs in Convex?

Yes, scheduled jobs in Convex support job monitoring and retry strategies. This ensures reliable execution of recurring background tasks and helps recover from transient failures during long-running operations.

What are common use cases for Convex cron jobs?

Common use cases include cleaning up expired user sessions every hour, generating daily or weekly reports, and syncing data from external APIs at regular intervals using Convex internal functions for secure execution.

Does scheduling background jobs in Convex require external dependencies?

No external dependencies are required to schedule background jobs in Convex. The functionality integrates directly with Convex's internal functions, enabling secure and efficient execution of recurring tasks natively.

What are the limitations when running long-running tasks in Convex?

Long-running tasks in Convex require adherence to best practices for scheduling and execution. The Skill provides guidance on retry strategies and monitoring to handle edge cases, but complex workflows may need careful interval configuration.