Search code examples
node.jsexpresscron

node js crone job is not working first day of every month


cron.schedule('* * * 1 *', function () {//do something })

this is my code for cron job, it supposed to trigger the first day of every month. but it won't be doing anything what I am doing wrong here.


Solution

  • You can check the expression config from the below image.

    If you write like this " * * * " it will run for every minute.

    enter image description here