From 78642cdcebba8fba1210d064b6ffb126bbf26b04 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 22 Dec 2022 15:16:19 +0100 Subject: [PATCH] :bug: Fix slow exit of exporter docker container --- exporter/src/app/core.cljs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exporter/src/app/core.cljs b/exporter/src/app/core.cljs index 34b228436..2efc846ba 100644 --- a/exporter/src/app/core.cljs +++ b/exporter/src/app/core.cljs @@ -44,3 +44,6 @@ (proc/on "uncaughtException" (fn [cause] (js/console.error cause))) + +(proc/on "SIGTERM" (fn [] (proc/exit 0))) +(proc/on "SIGINT" (fn [] (proc/exit 0)))