Add SIGTERM handler

This commit is contained in:
2026-01-15 10:00:05 +01:00
parent 547a43258b
commit d7752c9319

View File

@@ -1,4 +1,8 @@
import { run } from 'probot'; import { run } from 'probot';
import appFn from './appFn'; import appFn from './appFn';
run(appFn); run(appFn).then((server) => {
process.on('SIGTERM', async () => {
await server.stop();
});
});