Scheduled jobs execute multiple times
HenonoaH opened this issue · comments
HenonoaH commented
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
Kamil Mysliwiec commented
Please, report this issue in the cron package repository https://github.com/kelektiv/node-cron