Skip to content

Scheduled jobs execute multiple times #454

@HenonoaH

Description

@HenonoaH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions