Scheduled function patterns for background tasks including interval scheduling, cron expressions, job monitoring, retry strategies, and best practices for…
Schedule recurring background tasks with interval and cron expression patterns in Convex. Supports two scheduling modes: fixed intervals (seconds, minutes, hours) and precise cron expressions (UTC timezone) Cron jobs call internal functions for security and can accept static arguments for parameterized tasks Includes patterns for cleanup operations, data syncing, batch processing, and external API calls via actions Built-in logging and monitoring via the Convex dashboard; handle large datasets through pagination and batching to avoid timeouts Convex Cron Jobs Schedule recurring functions for background tasks, cleanup jobs, data syncing, and automated workflows in Convex applications. Documentation Sources Before implementing, do not assume; fetch the latest documentation: Primary: https://docs.convex.dev/scheduling/cron-jobs Scheduling Overview: https://docs.convex.dev/scheduling Scheduled Functions: https://docs.convex.dev/scheduling/scheduled-functions For broader context: https://docs.convex.dev/llms.txt Instructions Cron Jobs Overview Convex cron jobs allow you to schedule functions to run at regular intervals or specific times. Key features:
don't have the plugin yet? install it then click "run inline in claude" again.