(code: number)
| 144 | console.log(`EXECUTOR_READY:${server.port}`); |
| 145 | |
| 146 | const stop = async (code: number) => { |
| 147 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: shutdown path must terminate even when stop() throws |
| 148 | try { |
| 149 | await server.stop(); |
| 150 | if (supervised) removeOwnManifest(); |
| 151 | } finally { |
| 152 | process.exit(code); |
| 153 | } |
| 154 | }; |
| 155 | |
| 156 | process.on("SIGTERM", () => void stop(0)); |
| 157 | process.on("SIGINT", () => void stop(0)); |
no test coverage detected