Search code examples
javascriptnode.jscroncron-tasknode-cron

Why is my hour parameter not working in node-cron


I am trying to run a cron job using node-cron every Monday at 8:30 so I use "30 8 * * Mon" which never runs (I also used "30 08 * * Mon" to be sure). After a bit of troubleshooting, I have seen that "30 * * * Mon" does work and runs on the 30th min of every hour. Can anyone help me figure this out, please?


Solution

  • try this (*/30 08 * * Mon) and for any more queries visit https://crontab.guru/#*/30_08_*_*_Mon