Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jobs are not execution in odd number minute and hours  #201

@sharafuthinkpalm

Description

@sharafuthinkpalm

HI,
I have added node-cron in my project and Job scheduled
1 to 59 minutes in every 2 minute(1-59/2 * * * * *),
so job should execute minutes 1,3,4,5..59 (odd number). but job execution only working in even number(minute).
issue happening in case of hours also. (not executing at time of )
pleas help me if i made any mistake here:

eg:

let cron_job = cron.schedule("1-59/2 * * * *", () => {
console.log(moment().toString());
}
)

output
hu Dec 05 2019 19:02:00 GMT+0530
Thu Dec 05 2019 19:04:00 GMT+0530
Thu Dec 05 2019 19:06:00 GMT+0530
Thu Dec 05 2019 19:08:00 GMT+0530

thanks....

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