NestJS module (v0.1.6) that distributes cron job execution across pods using Redis queues. Each pod checks the queue every 5 seconds and executes jobs via HTTP (axios). Provides APIs to add, clean, and manage cron jobs, plus a health check that returns 403 if the pod is busy. Requires @nestjs/common/core (>=6 <10) and ioredis (>=5.3.1). Limited to NestJS and blocking HTTP-based cron jobs.
npm install tbs-cron-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the TbsCronQueueModule in a NestJS app module with Redis configuration and environment variables.
Adjust your cron schedule to account for the 5s polling interval. Consider using a dedicated queue worker if higher throughput is needed.
Ensure your cron APIs are HTTP reachable, stateless, and fast enough to avoid queue build-up.
Use NestJS v9 or earlier, or wait for a new package version.
Install those packages as well: yarn add tbs-site-config global-body-validator-tbs
Run: yarn add tbs-site-config
Use: import { TbsCronQueueModule } from 'tbs-cron-queue'Set REDIS_HOST and REDIS_PORT environment variables correctly.