var cron = require('node-cron'); cron.schedule("0 */10 * * * *", async () => { //every 10 minutes console.log("running a task every 10 minutes"); });