From 164d5691908d92eff02ff32d74cc69b5ec59b332 Mon Sep 17 00:00:00 2001 From: lrleon Date: Mon, 19 Apr 2021 17:01:26 -0500 Subject: [PATCH] New handler with a continuation function --- simple_k8s.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simple_k8s.go b/simple_k8s.go index df471e3..d4a29c9 100644 --- a/simple_k8s.go +++ b/simple_k8s.go @@ -206,8 +206,9 @@ func TerminationHandlerCont(timeout time.Duration, continuation func(pars ...int continuation(pars...) } + log.Printf("Waiting for %s seconds before to exit", timeout/time.Second) time.Sleep(timeout) - + log.Print("Exiting") os.Exit(0) }