node-cron run job every 3 hours

隐身守侯 提交于 2019-12-05 21:33:28

You should zero-out the second and minute values, and use a step of /3. The cron expression for this is

0 0 */3 * * *

Which evaluates to 'At 0 seconds, 0 minutes every 3rd hour'.

Your current expression * * */8 * * * would try to run every second of every minute past every 8th hour.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!