There is literally no tutorial about using Heroku Scheduler with Node.js. Assume that I have a function called sayHello() and I would like to run it every 10 mins. Ho
A better approach is to define your schedule file called for example worker.js with following content:
worker.js
function sayHello() { console.log('Hello'); } sayHello();
and then in the heroku schedule, you just write node worker like you define it in the Procfile and that's all!
node worker
Procfile