Run Cron Job every 45 minutes with Node-Cron

前端 未结 8 882
别那么骄傲
别那么骄傲 2020-12-25 13:58

I\'m using node-cron to run scheduled jobs. I want the jobs to run every 45 minutes, but its acting strangely

Here\'s the pattern I\'m using

\'00 */45

8条回答
  •  春和景丽
    2020-12-25 14:30

    You're probably looking for

    0 */45 * * * *
    

    The ranges are here.

    • Seconds: 0-59
    • Minutes: 0-59
    • Hours: 0-23
    • Day of Month: 1-31
    • Months: 0-11
    • Day of Week: 0-6

提交回复
热议问题