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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -