cron-scheduler

Manage scheduled tasks and cron jobs across serverless and backend environments.

1|Updated Sep 14, 2025
One-click install
npx skills add https://github.com/CleanExpo/DR-NRPG --skill cron-scheduler-cleanexpo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cron-scheduler
Source: https://github.com/CleanExpo/DR-NRPG/tree/main/.skills/custom/cron-scheduler
Command: npx skills add https://github.com/CleanExpo/DR-NRPG --skill cron-scheduler-cleanexpo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides robust patterns and best practices for implementing and managing scheduled tasks, ensuring they run reliably, securely, and without unintended side effects.

Core Features & Use Cases

  • Vercel Cron Jobs: Integrates seamlessly with Vercel's cron job system for serverless scheduled functions.
  • Next.js API Routes: Provides templates for creating secure and observable cron endpoints within Next.js applications.
  • Backend Scheduling: Offers patterns for periodic tasks in backend services using libraries like APScheduler.
  • Use Case: Automatically generate a daily sales report every morning at 9 AM, ensuring the process is secure, doesn't run twice, and alerts you if it fails.

Quick Start

Implement a new cron job by creating a route handler in apps/web/app/api/cron/{job-name}/route.ts and adding an entry to apps/web/vercel.json.

Frequently Asked Questions about cron-scheduler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Vercel cron jobs in a Next.js application?

To set up Vercel cron jobs in Next.js, create an API route handler and register the schedule in vercel.json. This Skill provides templates for secure endpoints, CRON_SECRET authentication, and overlap protection to ensure reliable serverless task execution.

What is the best way to prevent overlapping background jobs in serverless environments?

Preventing overlapping background jobs requires implementing overlap protection patterns. This Skill enforces idempotency and execution locks within Next.js API routes and backend schedulers, ensuring periodic tasks do not run concurrently or trigger unintended side effects.

Does this scheduler support backend periodic tasks outside of Next.js and Vercel?

Yes, this scheduler supports backend periodic tasks outside of Next.js and Vercel. It provides robust implementation patterns for backend environments using libraries like APScheduler, including cron expression conventions and failure alerting.

How do I handle timezone conversions like AEST and AEDT for scheduled tasks?

Handling timezones like AEST and AEDT for scheduled tasks requires explicit timezone management logic. This Skill enforces timezone handling conventions within cron expressions and backend schedulers to ensure daily periodic tasks trigger at the correct local time.

Why do my Next.js cron endpoints fail silently without authentication?

Next.js cron endpoints fail silently without authentication because they lack proper authorization checks. This Skill implements CRON_SECRET validation to secure API route handlers, preventing unauthorized external requests and ensuring only verified scheduled triggers execute.

What are the limitations of using serverless cron jobs for backend automation?

Serverless cron jobs for backend automation face limitations like execution timeouts and potential overlapping runs. This Skill mitigates these constraints by enforcing idempotency, failure alerting, and overlap protection to maintain reliable background job execution.