mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 13:37:59 +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 });
|
process.send({ outage: mapped });
|
||||||
}
|
}
|
||||||
break;
|
process.exit();
|
||||||
|
|
||||||
case 'testOne':
|
case 'testOne':
|
||||||
if (!message.service) {
|
if (!message.service) {
|
||||||
@ -44,10 +44,10 @@ process.on('message', async message => {
|
|||||||
const result = await testEndpoints(service.autotest);
|
const result = await testEndpoints(service.autotest);
|
||||||
process.send({ outage: result });
|
process.send({ outage: result });
|
||||||
}
|
}
|
||||||
break;
|
process.exit();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.error('Unknown command:', message.command);
|
console.error('Unknown command:', message.command);
|
||||||
break;
|
process.exit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user