node.js - Heroku 2 dynos for nodejs app with node-cron module. How it will work? -
node.js - Heroku 2 dynos for nodejs app with node-cron module. How it will work? -
i have nodejs app running on 2 dynos. have cron module run syncing external mysql db mongodb. question is. running on 2 dynos, cron jobs run twice, 1 time each app, cron jobs within nodejs app?
heroku dynos not have cron available. dynos stateless , know nil of other dynos, if cron available, each dyno run own , you'd have duplication.
if need cron-like functionality, should utilize heroku scheduler:
https://devcenter.heroku.com/articles/scheduler node.js heroku cron
Comments
Post a Comment