You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to integrate node cron to execute in my app.
I followed the simplest example mentioned on the docs to execute a function every second. Here is the snippet:
Cron.schedule('3 * * * * *',()=>{console.log('runs every 3 seconds'); )}
Hoping it would run every 3 seconds. But i get an error saying "execution must be a function".
Using version 3.0.2
The text was updated successfully, but these errors were encountered:
I was trying to integrate node cron to execute in my app.
I followed the simplest example mentioned on the docs to execute a function every second. Here is the snippet:
Cron.schedule('3 * * * * *',()=>{console.log('runs every 3 seconds'); )}
Hoping it would run every 3 seconds. But i get an error saying "execution must be a function".
Using version 3.0.2
The text was updated successfully, but these errors were encountered: