convex-cron-jobs

Schedule recurring Convex functions with interval or cron expressions.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/mihaicrisan04/zalem --skill convex-cron-jobs-mihaicrisan04
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/mihaicrisan04/zalem/tree/main/.agents/skills/convex-cron-jobs
Command: npx skills add https://github.com/mihaicrisan04/zalem --skill convex-cron-jobs-mihaicrisan04

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates recurring tasks within your Convex application, ensuring background processes run reliably without manual intervention.

Core Features & Use Cases

  • Scheduled Execution: Run functions at specific intervals or cron times.
  • Background Tasks: Ideal for data syncing, cleanup jobs, and automated reports.
  • Use Case: Automatically generate a daily sales report every night at midnight UTC by scheduling a Convex function.

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?▼

Convex supports interval-based scheduling and cron expression scheduling for recurring functions. You can configure tasks to run at specific intervals or exact cron times to automate background processes reliably.

How do I set up a cron job in Convex to run an internal function?▼

Set up a cron job in Convex by configuring your desired schedule in the `convex/crons.ts` file. You then map that schedule to an internal function, such as `internal.tasks.cleanupExpiredSessions`, to execute automatically based on the defined interval or cron expression.

Can I use cron expressions for scheduling automated reports in a Convex application?▼

Yes, you can use cron expressions for scheduling automated reports in a Convex application. For example, you can configure a daily sales report to generate every night at midnight UTC by scheduling a Convex function with a specific cron expression.

Does Convex handle automatic retries and monitoring for scheduled serverless jobs?▼

Yes, Convex handles automatic retries and monitoring for scheduled serverless jobs. This ensures your background tasks, cleanup jobs, and data syncing workflows run reliably without requiring manual oversight for failure recovery.