i attempting create heroku server logs different statistic every day 6 5 pm , displays data collected throughout day @ midnight in form of array on server output. how go doing this? in order create events fire @ top of hour each hour every day , store data, should use node cron or node schedule?
if want run specific code on heroku @ specific time intervals, should use heroku scheduler addon. free addon heroku provides want do, in far more reliable way using js directly.
the reason better because when you're running code on heroku, web server (dyno) restart time time, messing scheduled runs if you're keeping state persistent in node process.
Comments
Post a Comment