nestrs-locks provides lease-based exclusivity (in-memory or Redis). Use it for schedule single-runner jobs, leader election light, and critical sections that must not overlap across processes.
Install
Usage
Options
Schedule single-runner
Combine withScheduleModule (schedule feature): acquire a named lock at the start of #[cron] / #[interval] handlers so only one replica runs the job.
See also
- Workflows (often paired with locks)
- API reference