mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 05:27:58 +00:00
Exit runtime
This commit is contained in:
parent
daf16a00b2
commit
d6261432b9
@ -33,7 +33,7 @@ process.on('message', async message => {
|
||||
|
||||
process.send({ outage: mapped });
|
||||
}
|
||||
break;
|
||||
process.exit();
|
||||
|
||||
case 'testOne':
|
||||
if (!message.service) {
|
||||
@ -44,10 +44,10 @@ process.on('message', async message => {
|
||||
const result = await testEndpoints(service.autotest);
|
||||
process.send({ outage: result });
|
||||
}
|
||||
break;
|
||||
process.exit();
|
||||
|
||||
default:
|
||||
console.error('Unknown command:', message.command);
|
||||
break;
|
||||
process.exit();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user