convex-cron-jobs

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

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/Pratikkadam254/LinkedinLeadGen --skill convex-cron-jobs-pratikkadam254
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-cron-jobs
Source: https://github.com/Pratikkadam254/LinkedinLeadGen/tree/main/.claude/skills/convex-cron-jobs
Command: npx skills add https://github.com/Pratikkadam254/LinkedinLeadGen --skill convex-cron-jobs-pratikkadam254

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates reliable scheduling of background tasks in Convex applications, reducing manual orchestration and ensuring timely execution.

Core Features & Use Cases

  • Interval-based scheduling for recurring tasks (e.g., periodic cleanups, data sync)
  • Cron-expression scheduling for precise timing (e.g., 0 0 * * *)
  • Monitoring, retries, and observability via the Convex dashboard
  • Best practices for long-running tasks including batching and robust error handling

Quick Start

Define a cron interval or cron expression in convex/crons.ts and point it to an internal function for execution.

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, define a cron interval or cron expression in the convex/crons.ts file and point it to an internal function for execution. This handles periodic cleanups and data syncs.

What is the best way to handle long-running jobs in Convex?

The best way to handle long-running jobs in Convex is to apply best practices for batching and robust error handling. This approach ensures reliable execution and accommodates logging and observation via the dashboard.

Does Convex support cron-expression scheduling for precise task timing?

Yes, Convex supports cron-expression scheduling for precise timing, such as using standard expressions like 0 0 * * *. It also supports interval-based scheduling for simpler recurring task execution.

Why do my Convex cron jobs need to invoke internal functions?

Convex cron jobs must invoke internal functions to enforce security. This architectural constraint prevents external exploitation of scheduled workflows while ensuring reliable background task execution.

Can I monitor and retry failed background jobs in Convex?

Yes, you can monitor and retry failed background jobs in Convex. The platform provides observability and retry mechanisms directly through the Convex dashboard using standard logging patterns.

What are the limitations of scheduling long-running tasks in Convex?

When scheduling long-running tasks in Convex, limitations include potential execution failures requiring robust error handling. You must accommodate batching and use standard observation patterns to manage these extended background workflows.