We have a MEAN stack application. It is deployed on iisnode. We have written a cron job using npm cron module.cron is not running until we hit the URL. We think iisnode become idle. Is there a way to resolve this?
Asked
Active
Viewed 510 times
1
-
Please provide detailed description of problem – kaxi1993 Jan 11 '18 at 14:49
-
when we set time in cron in day time and hit the url of application which is deployed in iisnode cron is always triggering and giving expected output.but in night time when there is no hit to url means iisnode is not receiving any request then cron is not triggering.Please give inputs on this. – aks Jan 11 '18 at 15:22
1 Answers
3
IIS will close the process if the pool becomes idle. You should config it like this answer:
- Open IIS(intemgr).
- Go to Application Pools.
- Right click on the pool which runs your nodeJS app.
- Choose Advanced Settings.
- Set "Idle Time-Out" under the Process Model section to "0".

Bernardo Dal Corno
- 1,858
- 1
- 22
- 27