const gracefulShutdown = async () => {
console.log('Gracefully shutdown');
...
};
How do I call this function through Azure?
process.on('SIGTERM', async () => {
console.log('Process exited (via SIGTERM)');
await gracefulShutdown();
});
process.on('SIGINT', async () => {
console.log('Process exited (via SIGINT)');
await gracefulShutdown();
});
Should it be used this way or otherwise?
recycleSignalEnabled
is used to configure iis, so it can only be set in web.config.
It should be like below.
1. Not picking up node.exe despite being in path #302
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.