node.js - NodeJS - Wait like express.listen -
in application have schedule multiple cron task , application should run "forever" (in few words, have stop when kill it).
express framework use app.listen
run indefinitely.
how can this? wait not "active", because cron must continue work.
i cant use (i think) setinterval
. i've tried search lot havent find anytning this.
thanks
you may use setinterval() prevent app terminating. hope link provides more info on issue: https://stackoverflow.com/a/23354058/3359432
Comments
Post a Comment