NestJS Scheduling

Community

Robust cron jobs and job processing.

Authorngxtm
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of running scheduled tasks reliably in distributed environments, preventing duplicate job execution and ensuring task robustness.

Core Features & Use Cases

  • Distributed Cron Jobs: Prevents cron jobs from running on multiple instances simultaneously using Redis-based distributed locking.
  • Job Isolation & Robustness: Offloads heavy processing to background queues (like BullMQ) to avoid blocking the event loop and ensures proper error handling.
  • Use Case: Ensure a daily report generation task runs only once per day, even if multiple application instances are active, and that any failures in processing are caught and logged without crashing the application.

Quick Start

Configure the NestJS Scheduling skill to use Redis for distributed locking on the '@Cron' decorated method.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: NestJS Scheduling
Download link: https://github.com/ngxtm/skill-rule/archive/main.zip#nestjs-scheduling

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.