How do I stop a node.js script after it runs some time -


my script has module wait web response , stuck there because of web environment. want automatically stop after stucks 5 min (or 30 seconds) , don't want wait response timeout. how can that?

edit: comment @yerken need , works

the article

https://davidwalsh.name/essential-javascript-functions

includes function poll() may you're looking for. if doesn't work, please explain more want do. thanks!


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -