Skip to content

Commit

Permalink
New handler with a continuation function
Browse files Browse the repository at this point in the history
  • Loading branch information
lrleon committed Apr 19, 2021
1 parent cd0f294 commit 164d569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simple_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 164d569

Please sign in to comment.