aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workers/index.ts')
-rw-r--r--apps/workers/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/workers/index.ts b/apps/workers/index.ts
index 39741aa8..e576776a 100644
--- a/apps/workers/index.ts
+++ b/apps/workers/index.ts
@@ -23,6 +23,11 @@ async function main() {
Promise.all([crawler.run(), openai.run(), search.run()]),
shutdownPromise,
]);
+ logger.info("Shutting down crawler, openai and search workers ...");
+
+ crawler.stop();
+ openai.stop();
+ search.stop();
}
main();