Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled jobs execute multiple times #454

Closed
HenonoaH opened this issue Feb 2, 2021 · 1 comment
Closed

Scheduled jobs execute multiple times #454

HenonoaH opened this issue Feb 2, 2021 · 1 comment

Comments

@HenonoaH
Copy link

HenonoaH commented Feb 2, 2021

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
@kamilmysliwiec
Copy link
Member

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

@nestjs nestjs locked and limited conversation to collaborators Feb 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants