From 48da720d52fb3a509e2395664cc5d43a82929c7c Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Fri, 14 May 2021 09:52:43 +1000 Subject: [PATCH] fix: use working interrupt code --- plugins/gateway/lambda/lambda.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/gateway/lambda/lambda.go b/plugins/gateway/lambda/lambda.go index e165da7c2..2638729e6 100644 --- a/plugins/gateway/lambda/lambda.go +++ b/plugins/gateway/lambda/lambda.go @@ -227,8 +227,7 @@ func (s *LambdaGateway) Start(handler handler.TriggerHandler) error { // Assuming that this is blocking s.runtime(s.handle) // Signal process to terminate if no more lambda requests to handle - syscall.SIGTERM.Signal() - return nil + return syscall.Kill(syscall.Getpid(), syscall.SIGTERM) } func (s *LambdaGateway) Stop() error {