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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -