nestjs / schedule

Schedule module for Nest framework (node.js) ⏰

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scheduled jobs execute multiple times

HenonoaH opened this issue · comments

I'm submitting

[ ] Bug report

Current behavior

Every scheduled job runs multiple times.

Expected behavior

It should be triggered only once for the given cron expression

Minimal reproduction of the problem with instructions


@Cron('* * * * *')
async helloWorld() {
    console.log(new Date());
    console.log('coming');
    console.log(new Date());
}

This simple hello world scheduled job triggers multiple times every minute.

Environment


Nest version: 14.10.1

Please, report this issue in the cron package repository https://github.com/kelektiv/node-cron