1 Commits

Author SHA1 Message Date
7bbe31f4ea feat: handle termination 2019-01-30 09:59:15 -07:00

View File

@@ -49,6 +49,7 @@ async function run() {
};
process.on('SIGINT', terminate('SIGINT'));
process.on('SIGTERM', terminate('SIGTERM'));
process.on('SIGKILL', terminate('SIGKILL'));
// scheduled running
if (interval === 0) return;