skills/nestjs/nestjs-scheduling/SKILL.md
Implement distributed cron jobs with Redis-based locking and BullMQ offloading in NestJS. Use when adding @Cron scheduled tasks, preventing duplicate runs across pods, or delegating heavy work to queue workers.
npx skillsauth add hoangnguyen0403/agent-skills-standard nestjs-schedulingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ScheduleModule.forRoot() in AppModule.@Cron(CronExpression.*).@Cron() runs on every instance. In K8s with 3 pods, your "Daily Report" runs 3 times.SET resource_name my_random_value NX PX 30000 (Redis Atomic Set).See implementation examples
nestjs-redlock or custom Redis wrapper via redlock library.See implementation examples
try/catch. Uncaught exceptions in Cron job can crash entire Node process.try/catch; uncaught exceptions crash entire Node process.development
Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.
tools
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling.
development
Validate input, secure auth tokens, and prevent injection attacks in TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration.
development
Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.